linux-uconsole/drivers/gpu/drm/tilcdc
Ezequiel Garcia a3cb445501 drm/tilcdc: Fix the error path in tilcdc_load()
commit b478e336b3 upstream.

The current error path calls tilcdc_unload() in case of an error to release
the resources. However, this is wrong because not all resources have been
allocated by the time an error occurs in tilcdc_load().

To fix it, this commit adds proper labels to bail out at the different
stages in the load function, and release only the resources actually allocated.

Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Johannes Pointner <johannes.pointner@br-automation.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Fixes: 3a49012224 ("drm/tilcdc: panel: fix leak when unloading the module")
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-14 08:47:56 -08:00
..
Kconfig drm/tilcd: select BACKLIGHT_LCD_SUPPORT 2013-06-03 19:20:49 +10:00
Makefile drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in EXTRA_CFLAGS 2013-04-24 14:34:40 +10:00
tilcdc_crtc.c
tilcdc_drv.c drm/tilcdc: Fix the error path in tilcdc_load() 2014-11-14 08:47:56 -08:00
tilcdc_drv.h
tilcdc_panel.c drm/tilcdc: fix double kfree 2014-10-05 14:54:07 -07:00
tilcdc_panel.h drm/tilcdc: add support for LCD panels (v5) 2013-02-19 17:57:45 -05:00
tilcdc_regs.h
tilcdc_slave.c drm/tilcdc: slave: fix dangling sysfs connector node 2014-10-05 14:54:06 -07:00
tilcdc_slave.h
tilcdc_tfp410.c drm/tilcdc: tfp410: fix dangling sysfs connector node 2014-10-05 14:54:06 -07:00
tilcdc_tfp410.h