linux/drivers/gpu/drm/tilcdc
Ezequiel Garcia 09756c1a9b 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>
Cc: matwey.kornilov@gmail.com
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2014-11-03 10:34:41 +00:00
..
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02: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: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
tilcdc_drv.c drm/tilcdc: Fix the error path in tilcdc_load() 2014-11-03 10:34:41 +00: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-10-05 13:40:50 -07: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-10-05 13:40:50 -07: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-10-05 13:40:50 -07:00
tilcdc_tfp410.h drm/tilcdc: add TI LCD Controller DRM driver (v4) 2013-02-19 17:57:44 -05:00