Files
linux/drivers
Bin Liu 5663ac647f usb: musb: host: fix potential NULL pointer dereference
commit 2b63f1329d upstream.

musb_start_urb() doesn't check the pass-in parameter if it is NULL.  But
in musb_bulk_nak_timeout() the parameter passed to musb_start_urb() is
returned from first_qh(), which could be NULL.

So wrap the musb_start_urb() call here with a if condition check to
avoid the potential NULL pointer dereference.

Fixes: f283862f3b ("usb: musb: NAK timeout scheme on bulk TX endpoint")
Cc: stable@vger.kernel.org # v3.7+
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-16 10:06:49 +02:00
..
2017-12-16 10:33:55 +01:00
2018-05-16 10:06:48 +02:00
2018-02-25 11:03:46 +01:00
2018-03-24 10:58:41 +01:00
2018-02-25 11:03:51 +01:00
2018-04-13 19:50:16 +02:00
2016-09-24 10:07:35 +02:00
2018-04-29 07:50:06 +02:00