staging: dwc2: check for null pointer before dereferencing it
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Mon, 22 Apr 2013 21:00:18 +0000 (14:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:37:55 +0000 (10:37 -0700)
commit7902c16b9a5b7001d79940d6b4e99366d6e525d8
tree803c97fe196b0b332b98004ec7cecfd6bc202a4f
parentde9169a1e026245b2efcc0fa8723d5fe5580de0b
staging: dwc2: check for null pointer before dereferencing it

We were testing qtd->urb pointer for null after we had already
dereferenced it

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd_intr.c