test_firmware: fix missing unlock on error in config_num_requests_store()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 11 Jan 2018 11:12:55 +0000 (11:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 15:55:38 +0000 (16:55 +0100)
commita5e1923356505e46476c2fb518559b7a4d9d25b1
tree99c8457d4e34c65931aa38d13bb41b1121d9d88b
parent76f8ab1bd1cb0be3233ab07790c3108d986aeabf
test_firmware: fix missing unlock on error in config_num_requests_store()

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

Fixes: c92316bf8e94 ("test_firmware: add batched firmware tests")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/test_firmware.c