USB: musb: don't dereference NULL tusb_dma indma_controller_destroy()
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 29 Jan 2010 22:20:19 +0000 (14:20 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 29 Jan 2010 22:20:19 +0000 (14:20 -0800)
commitce6e9bb6c9f106e1cb2bd1a9a8d16c0e49b56935
treecf2c63b63744ca28aea7b49a6bb206a7a814171f
parentde40e027905cc595e137be1f80816d7269006a56
USB: musb: don't dereference NULL tusb_dma indma_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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/tusb6010_omap.c