Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/instmem L...



details:   https://anonhg.NetBSD.org/src/rev/6e293aa499e5
branches:  trunk
changeset: 364963:6e293aa499e5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Aug 29 15:46:31 2018 +0000

description:
Let's try not to use uninitialized memory as a bus size, shall we?

>From rjs@.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/instmem/nouveau_nvkm_subdev_instmem_nv40.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b3bfd8a92d4c -r 6e293aa499e5 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/instmem/nouveau_nvkm_subdev_instmem_nv40.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/instmem/nouveau_nvkm_subdev_instmem_nv40.c     Wed Aug 29 14:53:46 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/instmem/nouveau_nvkm_subdev_instmem_nv40.c     Wed Aug 29 15:46:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_subdev_instmem_nv40.c,v 1.5 2018/08/27 14:51:55 riastradh Exp $   */
+/*     $NetBSD: nouveau_nvkm_subdev_instmem_nv40.c,v 1.6 2018/08/29 15:46:31 riastradh Exp $   */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_subdev_instmem_nv40.c,v 1.5 2018/08/27 14:51:55 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_subdev_instmem_nv40.c,v 1.6 2018/08/29 15:46:31 riastradh Exp $");
 
 #define nv40_instmem(p) container_of((p), struct nv40_instmem, base)
 #include "priv.h"
@@ -299,7 +299,7 @@
        iomembase = device->func->resource_addr(device, bar);
        iomemsz = device->func->resource_size(device, bar);
        /* XXX errno NetBSD->Linux */
-       ret = -bus_space_map(imem->iomemt, iomembase, imem->iomemsz,
+       ret = -bus_space_map(imem->iomemt, iomembase, iomemsz,
            BUS_SPACE_MAP_LINEAR, &imem->iomemh);
        if (ret) {
                nvkm_error(&imem->base.subdev, "unable to map PRAMIN BAR %d"



Home | Main Index | Thread Index | Old Index