diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-06-02 04:42:32 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-06-02 05:54:07 +0200 |
commit | 77154fd969df749f5bf83f639af19fca199de033 (patch) | |
tree | 192bedb0df2174be25c3cc982ed011fd3d318fc4 /drivers/gpu | |
parent | drm/nouveau/fbcon: fix out-of-bounds memory accesses (diff) | |
download | linux-77154fd969df749f5bf83f639af19fca199de033.tar.xz linux-77154fd969df749f5bf83f639af19fca199de033.zip |
drm/nouveau/core: swap the order of imem/fb
Fixes a use-after-free reported by valgrind and KASAN.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/core/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/device.h b/drivers/gpu/drm/nouveau/include/nvkm/core/device.h index c612dc1f1eb4..126a85cc81bc 100644 --- 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, |