drm/i915: Fix all intel_framebuffer_init failures to take the error path
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Mar 2017 15:41:27 +0000 (15:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Mar 2017 17:57:16 +0000 (17:57 +0000)
commit9aceb5c15d84d4b960f5f80fba846c753554d092
tree3b242b19a3d9b8271c55e2d92c31c7429ed88a39
parent25b4620ee822d5f3c2deb3f1358e82763578788f
drm/i915: Fix all intel_framebuffer_init failures to take the error path

No more direct return -EINVAL as we have to unwind the
obj->framebuffer_references.

Fixes: 24dbf51a5517 ("drm/i915: struct_mutex is not required for allocating the framebuffer")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170301154128.2841-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c