]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc2: Fix NULL qh in dwc2_queue_transaction
authorAlexandru M Stan <amstan@chromium.org>
Wed, 23 Oct 2019 21:06:31 +0000 (14:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:20 +0000 (10:39 +0100)
commit7b8137676457d99181fb2952f0b996b8569e6420
treeae331e607caf94c851071cc352516b53bd083fc1
parent6070636c4918c3c06e54edecdb323c8b57116768
usb: dwc2: Fix NULL qh in dwc2_queue_transaction

When a usb device disconnects in a certain way, dwc2_queue_transaction
still gets called after dwc2_hcd_cleanup_channels.

dwc2_hcd_cleanup_channels does "channel->qh = NULL;" but
dwc2_queue_transaction still wants to dereference qh.
This adds a check for a null qh.

Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
[dianders: rebased to mainline]
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/hcd.c