diff options
author | Guido MartÃnez <guido@vanguardiasur.com.ar> | 2014-06-17 11:17:07 -0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-08 11:25:14 +1000 |
commit | 3a49012224ca9016658a831a327ff6a7fe5bb4f9 (patch) | |
tree | a24003094dfdefbe32b12c20087d8c64b7603100 /drivers/gpu/drm/tilcdc/tilcdc_drv.c | |
parent | 16dcbdef404f4e87dab985494381939fe0a2d456 (diff) | |
download | linux-3a49012224ca9016658a831a327ff6a7fe5bb4f9.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_drv.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index b20b69488dc9..490aee79e106 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -122,6 +122,7 @@ static int tilcdc_unload(struct drm_device *dev) struct tilcdc_drm_private *priv = dev->dev_private; struct tilcdc_module *mod, *cur; + drm_fbdev_cma_fini(priv->fbdev); drm_kms_helper_poll_fini(dev); drm_mode_config_cleanup(dev); drm_vblank_cleanup(dev); |