]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: dwc2: fix dereference before NULL check
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Thu, 13 Feb 2014 01:44:35 +0000 (17:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:26:14 +0000 (12:26 -0800)
commit2b54fa6bbef4dbc0beabcc989625204b608d062d
tree533d01d33fceebfd4dde0c241a003416cf7944fe
parent0f94388b27c599015b74eedf1a32126a3f5fc0f9
usb: dwc2: fix dereference before NULL check

In a couple of places, we were checking qtd->urb for NULL after
we had already dereferenced it. Fix this by moving the check to
before the dereference.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/hcd_intr.c