diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-06-02 12:42:32 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-06-02 13:54:07 +1000 |
commit | 77154fd969df749f5bf83f639af19fca199de033 (patch) | |
tree | 192bedb0df2174be25c3cc982ed011fd3d318fc4 /drivers/gpu | |
parent | f045f459d925138fe7d6193a8c86406bda7e49da (diff) | |
download | linux-77154fd969df749f5bf83f639af19fca199de033.tar.gz linux-77154fd969df749f5bf83f639af19fca199de033.tar.xz |
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, |