drm/i915: Fix memory leak in intel_dsi_init() error path
authorChristoph Jaeger <christophjaeger@linux.com>
Fri, 13 Jun 2014 19:51:22 +0000 (21:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 20:08:15 +0000 (22:08 +0200)
commit868d665b43473e230d560d5186535270a3d57a19
tree9c23994063248caf4992801eae8ad34a72a153fc
parent5755c78f771b1c71974c466cfece9b4524898a4c
drm/i915: Fix memory leak in intel_dsi_init() error path

intel_dsi_init() bails out without freeing the memory 'intel_dsi' and
'intel_connector' point to. Simply bail out before allocating memory.

Picked up by Coverity - CID 1222750.

Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dsi.c