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)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Jul 2014 01:25:14 +0000 (11:25 +1000)
commit3a49012224ca9016658a831a327ff6a7fe5bb4f9
treea24003094dfdefbe32b12c20087d8c64b7603100
parent16dcbdef404f4e87dab985494381939fe0a2d456
drm/tilcdc: panel: fix leak when unloading the module

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>
Cc: <stable@vger.kernel.org> #v3.9+
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c