usb: gadget: f_midi: missing unlock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 5 Jan 2016 10:28:09 +0000 (13:28 +0300)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:34 +0000 (15:14 +0200)
commit413489c8337bf86b7787248484b1e845111809be
treec73701933073e24623d22c9e56df397b11e825e0
parentbf0028f8cb44a65ddc57b805ef43bd37dfa8a6ce
usb: gadget: f_midi: missing unlock on error path

We added a new error path to this function and we forgot to drop the
lock.

Fixes: e1e3d7ec5da3 ('usb: gadget: f_midi: pre-allocate IN requests')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[mina86@mina86.com: rebased on top of refactoring commit]
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_midi.c