* [PATCH] drm/i915: Cocci spatch "memdup.spatch"
@ 2013-05-22 21:07 Thomas Meyer
2013-05-23 6:40 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Meyer @ 2013-05-22 21:07 UTC (permalink / raw)
To: airlied, intel-gfx, dri-devel, linux-kernel
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
diff -u -p a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -2282,11 +2282,10 @@ intel_dp_get_edid(struct drm_connector *
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/i915: Cocci spatch "memdup.spatch"
2013-05-22 21:07 [PATCH] drm/i915: Cocci spatch "memdup.spatch" Thomas Meyer
@ 2013-05-23 6:40 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2013-05-23 6:40 UTC (permalink / raw)
To: Thomas Meyer; +Cc: airlied, intel-gfx, dri-devel, linux-kernel
On Wed, May 22, 2013 at 11:07:09PM +0200, Thomas Meyer wrote:
>
> Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-23 6:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 21:07 [PATCH] drm/i915: Cocci spatch "memdup.spatch" Thomas Meyer
2013-05-23 6:40 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox