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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:12:32 +0000 (10:12 +0200)
commit4d1a7b103fc497961b51bc589b426b968f2b1981
tree9e0d31496e4050a64144a2b2525fb243a66e423b
parente4c34cdf29f09929caea3f927d52c816f098dd7d
drm/nouveau/ttm: don't dereference nvbo::cli, it can outlive client

commit 0d5a03c3d9254813ca76d7886ff9ed76a0aea545 upstream.

Potentially responsible for some random OOPSes.

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