Patch "usb: gadget: pxa27x: Test for a valid argument pointer" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: gadget: pxa27x: Test for a valid argument pointer
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-gadget-pxa27x-test-for-a-valid-argument-pointer.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Dec 12 13:26:17 CET 2017
From: Petr Cvek <[email protected]>
Date: Fri, 24 Feb 2017 02:54:56 +0100
Subject: usb: gadget: pxa27x: Test for a valid argument pointer
From: Petr Cvek <[email protected]>
[ Upstream commit df7545719a14fa7b481896fb8689e23d0a00f682 ]
A call usb_put_phy(udc->transceiver) must be tested for a valid pointer. Use an already existing test for usb_unregister_notifier call.
--- drivers/usb/gadget/udc/pxa27x_udc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/usb/gadget/udc/pxa27x_udc.c +3 -2
@@ -2534,9 +2534,10 @@ static int pxa_udc_remove(struct platforusb_del_gadget_udc (&udc->gadget);pxa_cleanup_debugfs (udc); -if (!IS_ERR_OR_NULL (udc->transceiver)) +if (!IS_ERR_OR_NULL (udc->transceiver)) {usb_unregister_notifier (udc->transceiver, &pxa27x_udc_phy); -usb_put_phy (udc->transceiver); +usb_put_phy (udc->transceiver); + } udc->transceiver =NULL ; the_controller =NULL ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/usb-gadget-pxa27x-test-for-a-valid-argument-pointer.patch