projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc8aae
)
drm/i915: Cocci spatch "memdup.spatch"
author
Thomas Meyer
<thomas@m3y3r.de>
Wed, 22 May 2013 21:07:09 +0000
(23:07 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 23 May 2013 10:51:31 +0000
(12:51 +0200)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_dp.c
b/drivers/gpu/drm/i915/intel_dp.c
index 3426a6183188d1a169e7b387ce160d2730a5e9cd..9332558fc3dc2d8c1b5f1e04f5dff8c5a4938ce0 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_dp.c
+++ b/
drivers/gpu/drm/i915/intel_dp.c
@@
-2511,11
+2511,10
@@
intel_dp_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter)
return NULL;
size = (intel_connector->edid->extensions + 1) * EDID_LENGTH;
- edid = km
alloc(
size, GFP_KERNEL);
+ edid = km
emdup(intel_connector->edid,
size, GFP_KERNEL);
if (!edid)
return NULL;
- memcpy(edid, intel_connector->edid, size);
return edid;
}