drm/nouveau/mmu: qualify vmm during dtor
authorJon Derrick <jonathan.derrick@intel.com>
Sat, 16 Mar 2019 00:05:18 +0000 (18:05 -0600)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 1 May 2019 01:08:39 +0000 (11:08 +1000)
commit15516bf9abaa41421a6ded79a5a2fee86f9594e5
treedfca18c39fae007c9da6d8dbe8b2ced9fdfcabb5
parent12e08beb32d64b6070b718630490db83dd321c8c
drm/nouveau/mmu: qualify vmm during dtor

If the BAR initialization failed it may leave the vmm structure in an
unitialized state, leading to a null-pointer-dereference when the vmm is
dereferenced during teardown.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c