]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: free intel_fb
authorMatthew Auld <matthew.auld@intel.com>
Tue, 23 Aug 2016 15:00:44 +0000 (16:00 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 24 Aug 2016 13:07:03 +0000 (16:07 +0300)
commit1d1db42036c13bf16f05e7ccc12f975c992ca138
tree71c9ccc08dfc7e268a210ae77ce95825d7c3a205
parent421391f27b63a313bd76fdc8e68d7fa42a5f1e8b
drm/i915: free intel_fb

We need to free the allocated intel_fb in the error path, not
intel_fb->base. Otherwise we risk calling kfree with a non-kmalloc'd
address, which is bound to give us grief at some point.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471964444-24460-1-git-send-email-matthew.auld@intel.com
drivers/gpu/drm/i915/intel_display.c