[Linux-stable-mirror] [PATCH 4.14 125/156] usb: gadget: dont dereference g until after it has been null checked