drm/nouveau/ttm: don't dereference nvbo::cli, it can outlive client
authorBen Skeggs <bskeggs@redhat.com>
Tue, 8 May 2018 10:39:47 +0000 (20:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 10 May 2018 03:11:52 +0000 (13:11 +1000)
commit0d5a03c3d9254813ca76d7886ff9ed76a0aea545
tree06aaab21d2fa322627de0168e66262f50636e80b
parenta02cbe2e34c576cdc5e7846a3cd55245ab81db47
drm/nouveau/ttm: don't dereference nvbo::cli, it can outlive client

Potentially responsible for some random OOPSes.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org [v4.15+]
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.h
drivers/gpu/drm/nouveau/nouveau_ttm.c