]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: honour the return value of dma_map_single()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 13 Aug 2013 17:35:43 +0000 (19:35 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 19:07:29 +0000 (14:07 -0500)
commit56da7212fbfe04aebd6ff6b4f0d9e37deb9ff655
tree8612951cac15b5e12f15a1b38679c4cb9176dfe7
parent2147f0169119633627f73ac0928ed02b705d398a
usb: musb: honour the return value of dma_map_single()

Since dma_map_single() may fail it is good to actually check the return
code to see if it succeeded.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c