]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: musb: unmap reqs in musb_gadget_queue()'s error case
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 19 Jun 2013 15:38:15 +0000 (17:38 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:53:23 +0000 (13:53 +0300)
commit23a53d9008251825a4c8eea64503ed676e1d0f04
treeb881117d0ba907e072bc819c8009eab20a0767a0
parentf3ce4d5b2d8d714407a646c07505c5174afd7574
usb: musb: unmap reqs in musb_gadget_queue()'s error case

If the descriptor is missing the reqeust is never unmapped. This patch
changes this and renames the cleanup label to unlock since there is no
cleanup done. The cleanup would revert the allocation of ressource (i.e.
this dma mapping) but it does not, it simply unlocks and returns.

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