Commit 77154fd9 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/core: swap the order of imem/fb

Fixes a use-after-free reported by valgrind and KASAN.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f045f459
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment