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)
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

Simple merge
Simple merge