]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite89517c63cb8d96170d12ada4f8a5ae0ed19bdc4
tree009a5f34d67216a11f306e13b6d7ab8abdd3063f
parent9a74155f453757449fa2cf2076ecffd1fea6db5e
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