projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f045f45
)
drm/nouveau/core: swap the order of imem/fb
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 2 Jun 2016 02:42:32 +0000
(12:42 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 2 Jun 2016 03:54:07 +0000
(13:54 +1000)
Fixes a use-after-free reported by valgrind and KASAN.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/include/nvkm/core/device.h
b/drivers/gpu/drm/nouveau/include/nvkm/core/device.h
index
c612dc1
..
126a85c
100644
(file)
--- a/
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
+++ b/
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
@@
-16,9
+16,9
@@
enum nvkm_devidx {
NVKM_SUBDEV_MC,
NVKM_SUBDEV_BUS,
NVKM_SUBDEV_TIMER,
+ NVKM_SUBDEV_INSTMEM,
NVKM_SUBDEV_FB,
NVKM_SUBDEV_LTC,
- NVKM_SUBDEV_INSTMEM,
NVKM_SUBDEV_MMU,
NVKM_SUBDEV_BAR,
NVKM_SUBDEV_PMU,