]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ecfe91e60ee814d4f87d286545ba477a3b27490
tree3b242b19a3d9b8271c55e2d92c31c7429ed88a39
parenta797ccf45d119ff983eff2554050413232437964
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: 855a13dffe22 ("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