]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: ux500: Add check for NULL board data
authorLee Jones <lee.jones@linaro.org>
Wed, 21 Aug 2013 11:47:03 +0000 (12:47 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 20:05:39 +0000 (15:05 -0500)
commit201e0e349f358e957444b24cf750ffffede1b7c1
treee4168d0fa3373bb94899c04ec751ca7a9d4ae409
parent12b781e5b4704dbcc0355b4f89731c65feadacf2
usb: musb: ux500: Add check for NULL board data

Dan Carpenter's automatic Smatch checker found an anomaly in the ux500
MUSB driver, whereby board data was checked before use in all but one
occasion. It is believed that it needs to be checked every time.

Smatch complaint:
  drivers/usb/musb/ux500_dma.c:335 ux500_dma_controller_start()
         error: we previously assumed 'data' could be null (see line 313)

Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/ux500_dma.c