[Linux-stable-mirror] [PATCH 3.18 23/36] usb: gadget: dont dereference g until after it has been null checked