diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-05-22 23:07:09 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-23 12:51:31 +0200 |
commit | edbe1581c5f94f7fba39cd9a5b2facd624aab661 (patch) | |
tree | 5e035d2acb180b5bc179e5467cc2e49ac5887166 | |
parent | 2dc8aae06d53458dd3624dc0accd4f81100ee631 (diff) | |
download | talos-obmc-linux-edbe1581c5f94f7fba39cd9a5b2facd624aab661.tar.gz talos-obmc-linux-edbe1581c5f94f7fba39cd9a5b2facd624aab661.zip |
drm/i915: Cocci spatch "memdup.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 3426a6183188..9332558fc3dc 100644 --- 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 = kmalloc(size, GFP_KERNEL); + edid = kmemdup(intel_connector->edid, size, GFP_KERNEL); if (!edid) return NULL; - memcpy(edid, intel_connector->edid, size); return edid; } |