usb: gadget: inode: switch over to memdup_user()
authorFelipe Balbi <balbi@ti.com>
Mon, 10 Mar 2014 18:30:55 +0000 (13:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 23:05:31 +0000 (16:05 -0700)
commit3b74c73f8d6f053f422e85fce955b61fb181cfe7
tree48b041492d61f35a8fbd66dfa1a4892b65a15802
parentf3c73649828397ca6bae88bcb8cd70bbcbb65b18
usb: gadget: inode: switch over to memdup_user()

This patch fixes the following Coccinelle warning:

drivers/usb/gadget/inode.c:442:8-15: WARNING \
opportunity for memdup_user

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/inode.c