usb: gadget: pxa27x: Test for a valid argument pointer
authorPetr Cvek <petr.cvek@tul.cz>
Fri, 24 Feb 2017 01:54:56 +0000 (02:54 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 6 Mar 2017 15:00:24 +0000 (17:00 +0200)
commitdf7545719a14fa7b481896fb8689e23d0a00f682
tree2cb2464f6e928f121ec5fa3bb565207caa6fa844
parent0913750f9fb6f26bcd00c8f9dd9a8d1b8d031246
usb: gadget: pxa27x: Test for a valid argument pointer

A call usb_put_phy(udc->transceiver) must be tested for a valid pointer.
Use an already existing test for usb_unregister_notifier call.

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reported-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/pxa27x_udc.c