drm/nouveau/drm/nouveau: Don't forget to cancel hpd_work on suspend/unload
authorLyude Paul <lyude@redhat.com>
Tue, 7 Aug 2018 21:32:48 +0000 (17:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 10:06:05 +0000 (03:06 -0700)
commit9ac837e079a0e09771175c33afea8ef291b5d161
treeef6965a081d27a07cb380c7e4eef616109904a01
parent42387d8e4aefffe928e1a4ec99c45e6e2c4d2167
drm/nouveau/drm/nouveau: Don't forget to cancel hpd_work on suspend/unload

commit 2f7ca781fd382cf8dde73ed36dfdd93fd05b3332 upstream.

Currently, there's nothing in nouveau that actually cancels this work
struct. So, cancel it on suspend/unload. Otherwise, if we're unlucky
enough hpd_work might try to keep running up until the system is
suspended.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_display.h
drivers/gpu/drm/nouveau/nouveau_drm.c