usb: gadget: f_midi: unlock on error
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 2 Apr 2016 04:51:08 +0000 (07:51 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Apr 2016 12:18:37 +0000 (15:18 +0300)
commit4fc50ba5965ac2b360499d4a23eb10d04414dd36
tree1a59f269b569aef2b01b74546e6a9adfa540f0ea
parent6490865c67825277b29638e839850882600b48ec
usb: gadget: f_midi: unlock on error

We added some new locking here, but missed an error path where we need
to unlock.

Fixes: 9acdf4df2fc4 ('usb: gadget: f_midi: added spinlock on transmit function')
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_midi.c