git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d9f872
)
usb: gadget: atmel_usba: always test udc->driver
author
Alexandre Belloni
<alexandre.belloni@free-electrons.com>
Tue, 6 May 2014 15:16:07 +0000
(17:16 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 14 May 2014 14:23:26 +0000
(09:23 -0500)
Found using smatch: drivers/usb/gadget/atmel_usba_udc.c:1689 usba_udc_irq()
error: we previously assumed 'udc->driver' could be null (see line 1636)
Always test udc->driver before using its members.
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
No differences found