[Linux-stable-mirror] Patch "usb: gadget: don't dereference g until after it has been null checked" has been added to the 3.18-stable tree