drm/nouveau/core: swap the order of imem/fb
authorBen Skeggs <bskeggs@redhat.com>
Thu, 2 Jun 2016 02:42:32 +0000 (12:42 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Jun 2016 03:54:07 +0000 (13:54 +1000)
commit77154fd969df749f5bf83f639af19fca199de033
tree192bedb0df2174be25c3cc982ed011fd3d318fc4
parentf045f459d925138fe7d6193a8c86406bda7e49da
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>
drivers/gpu/drm/nouveau/include/nvkm/core/device.h