OSDN Git Service

usb: gadget: Use kmemdup instead of kmalloc + memcpy
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 26 May 2014 15:21:20 +0000 (17:21 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 17:27:09 +0000 (12:27 -0500)
commit58b949e0842a4751eec77edd60bd6178cef5b8de
tree009a5f34d67216a11f306e13b6d7ab8abdd3063f
parenteac44dc4e769a0f1db244dea13e10923c2877887
usb: gadget: 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: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/configfs.c
drivers/usb/gadget/lpc32xx_udc.c