]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/tilcdc: panel: fix leak when unloading the module
authorGuido Martínez <guido@vanguardiasur.com.ar>
Tue, 17 Jun 2014 14:17:07 +0000 (11:17 -0300)
committerJiri Slaby <jslaby@suse.cz>
Thu, 18 Sep 2014 14:39:59 +0000 (16:39 +0200)
commit565c526606aad527140f036004c258feed9bae44
tree85d877882c2f7a09438700f6ca318eb2a961512e
parente2f57296d3f3c4f5cdf5aa4f4c26b3c68ff17005
drm/tilcdc: panel: fix leak when unloading the module

commit 3a49012224ca9016658a831a327ff6a7fe5bb4f9 upstream.

The driver did not unregister the allocated framebuffer, which caused
memory leaks (and memory manager WARNs) when unloading. Also, the
framebuffer device under /dev still existed after unloading.

Add a call to drm_fbdev_cma_fini when unloading the module to prevent
both issues.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/tilcdc/tilcdc_drv.c