usb-gadget: Add checking return value