usb: gadget: Use kmemdup instead of kmalloc + memcpy