linux-imx/drivers/gpu/drm/tilcdc
Ezequiel Garcia 99a5213726 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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2014-10-31 15:11:32 +01: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 drm: Pass page flip ioctl flags to driver 2013-08-30 09:24:54 +10:00
tilcdc_drv.c drm/tilcdc: Fix the error path in tilcdc_load() 2014-10-31 15:11:32 +01:00
tilcdc_drv.h drm/tilcdc fixing i2c/slave initialization race 2013-06-28 09:12:54 +10:00
tilcdc_panel.c drm/tilcdc: fix double kfree 2014-09-18 16:39:59 +02:00
tilcdc_panel.h drm/tilcdc: add support for LCD panels (v5) 2013-02-19 17:57:45 -05:00
tilcdc_regs.h drm/tilcdc: support pixel widths greater than 1024 2013-06-28 09:12:13 +10:00
tilcdc_slave.c drm/tilcdc: slave: fix dangling sysfs connector node 2014-09-18 16:39:58 +02:00
tilcdc_slave.h drm/tilcdc: add encoder slave (v2) 2013-02-19 17:57:44 -05:00
tilcdc_tfp410.c drm/tilcdc: tfp410: fix dangling sysfs connector node 2014-09-18 16:39:58 +02:00
tilcdc_tfp410.h