diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2014-05-06 17:16:07 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-05-14 09:23:26 -0500 |
commit | bcdbc084ebab447f6eb1add7b953f125b0c8174b (patch) | |
tree | db0bf0f104402ab0d436312cd124fccb1bfa4dd9 /drivers/mfd/rts5229.c | |
parent | 4d9f872ced245ef0c712f0f04adf446d37813c57 (diff) |
usb: gadget: atmel_usba: always test udc->driver
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>
Diffstat (limited to 'drivers/mfd/rts5229.c')
0 files changed, 0 insertions, 0 deletions