]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_ncm: fix missing unlock on error in ncm_alloc()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 18 Jun 2013 03:43:29 +0000 (11:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2013 17:50:08 +0000 (10:50 -0700)
commit7223215c8769640f498ab61be0bf9166e655e170
treecb5ef707a5369595e435e717ac9bd46f9fbb1be4
parente471bcbd3a0b50e16298dcde52c514ae9f42232d
usb: gadget: f_ncm: fix missing unlock on error in ncm_alloc()

Add the missing unlock before return from function ncm_alloc()
in the error handling case.

Introduced by commit 7d8190ad3c189023b0217a66a1e3a933a821a4d0.
(usb: gadget: f_ncm: add configfs support)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/f_ncm.c