drm: Cancel drm_fb_helper_dirty_work on unload
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Feb 2017 12:49:55 +0000 (12:49 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Feb 2017 15:15:41 +0000 (16:15 +0100)
commitf21b9a92ca7c29382909eaab9facc2cf46f2cc0b
tree090f1eb89a9ca37c9800480bab4624f5ace442dd
parent4eaa39c63caf535dc1a8cc43b9a8677a100c09e1
drm: Cancel drm_fb_helper_dirty_work on unload

We can not allow the worker to run after its fbdev, or even the module,
has been removed.

Fixes: eaa434defaca ("drm/fb-helper: Add fb_deferred_io support")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v4.7+
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170207124956.14954-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_fb_helper.c