drm/fb-helper: Unmap client buffer during shutdown
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Nov 2020 10:25:37 +0000 (11:25 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 24 Nov 2020 08:27:47 +0000 (09:27 +0100)
commit763aea17bf575ecea62e4e18c29a8452a770cb1e
tree71454404a5a76f9ff1098a99a5c128f083d13ae6
parenta102172c7f818bfb32c0652552983e262d11990e
drm/fb-helper: Unmap client buffer during shutdown

The fbdev helper's generic probe function establishes a mapping for
framebuffers without shadow buffer. The clean-up function did not unmap
the buffer object. Add the unmap operation.

As fbdev devices are usally released during system shutdown, this has
not been a problem in practice.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201120102545.4047-3-tzimmermann@suse.de
drivers/gpu/drm/drm_fb_helper.c