USB: musb: don't dereference NULL tusb_dma in dma_controller_destroy()
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 9 Jan 2010 20:57:44 +0000 (21:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:14 +0000 (14:54 -0800)
commit94089d56e456d2814c379538919180957a254e4a
tree03e64466bbd6a647dd32c7ecaa0adeee5e89d95c
parentf7410ced7f931bb1ad79d1336412cf7b7a33cb14
USB: musb: don't dereference NULL tusb_dma in dma_controller_destroy()

Test whether tusb_dma is not NULL before dereferencing

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/tusb6010_omap.c