Commit d1a3a036 authored by Matthew Auld's avatar Matthew Auld Committed by Joonas Lahtinen

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: default avatarMatthew Auld <matthew.auld@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471964444-24460-1-git-send-email-matthew.auld@intel.com
parent 8f76aa0e
...@@ -9777,7 +9777,7 @@ skylake_get_initial_plane_config(struct intel_crtc *crtc, ...@@ -9777,7 +9777,7 @@ skylake_get_initial_plane_config(struct intel_crtc *crtc,
return; return;
error: error:
kfree(fb); kfree(intel_fb);
} }
static void ironlake_get_pfit_config(struct intel_crtc *crtc, static void ironlake_get_pfit_config(struct intel_crtc *crtc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment