usb: gadget: Fixing array index out of bound violation