drm/edid: Use kmemdup instead of kmalloc + memcpy
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 26 May 2014 15:21:22 +0000 (17:21 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 27 May 2014 05:48:11 +0000 (15:48 +1000)
commit89086bca67f04a538765faf39ea7c1b718beaf34
treef66eab324ae7d583da2c8cf7d568c7ca303d4e8a
parentc66de8cc2ea629412338e4976ef33ed5b72a2339
drm/edid: Use kmemdup instead of kmalloc + memcpy

This issue was reported by coccicheck using the semantic patch
at scripts/coccinelle/api/memdup.cocci

Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c