drm/i915: Cocci spatch "memdup.spatch"
Subsystems (2)
PATCH 1/1 drm/i915: Cocci spatch "memdup.spatch"
Signed-off-by Thomas Meyer <[email protected]>
---
drivers/gpu/drm/i915/intel_dp.c +1 -2
@@ -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; }
Daniel Vetter
AppliedQuoted 2 lines · Thomas Meyer
Signed-off-by Thomas Meyer <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch