]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix double unref in intelfb_alloc failure path
authorLukas Wunner <lukas@wunner.de>
Thu, 22 Oct 2015 11:37:18 +0000 (13:37 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 9 Nov 2015 14:03:00 +0000 (16:03 +0200)
commit8a43227f46cd78a34e481a421d664a31ba851945
treeaea8c3a3af15c166de9af37c6c85909933fb95a5
parentad49324ae90656e37ab8a0a3ae4080ebdf501875
drm/i915: Fix double unref in intelfb_alloc failure path

In intelfb_alloc(), if the call to intel_pin_and_fence_fb_obj() fails,
the bo is unrefed twice: By drm_framebuffer_remove() and once more by
drm_gem_object_unreference(). Fix it.

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/cd7b33330621a350b0159ec5e098297b139cfaf7.1446892879.git.lukas@wunner.de
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_fbdev.c