projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f76aa0
)
drm/i915: free intel_fb
author
Matthew Auld
<
[email protected]
>
Tue, 23 Aug 2016 15:00:44 +0000
(16:00 +0100)
committer
Joonas Lahtinen
<
[email protected]
>
Wed, 24 Aug 2016 13:07:03 +0000
(16:07 +0300)
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 <
[email protected]
>
Reviewed-by: Chris Wilson <
[email protected]
>
Signed-off-by: Joonas Lahtinen <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 6684099d49c62b56ddbc24e74eb91f744d7bb041..fc953739af6982e65dbffeb576730d76c6ceaf28 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_display.c
+++ b/
drivers/gpu/drm/i915/intel_display.c
@@
-9777,7
+9777,7
@@
skylake_get_initial_plane_config(struct intel_crtc *crtc,
return;
error:
- kfree(fb);
+ kfree(
intel_
fb);
}
static void ironlake_get_pfit_config(struct intel_crtc *crtc,