commit | bcdbc084ebab447f6eb1add7b953f125b0c8174b | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Tue May 06 17:16:07 2014 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Wed May 14 09:23:26 2014 -0500 |
tree | db0bf0f104402ab0d436312cd124fccb1bfa4dd9 | |
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>