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)
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

Simple merge