ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 5 Jun 2018 09:16:21 +0000 (09:16 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Jun 2018 11:33:57 +0000 (21:33 +1000)
commit2e5c93d6bb2f7bc17eb82748943a1b9f6b068520
tree1ce9a3ff3b86a8e95d36b181586941f22d462af1
parentb0c4acb1dd7c653f78391661079af544429b1f22
ocxl: Fix missing unlock on error in afu_ioctl_enable_p9_wait()

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

Fixes: e948e06fc63a ("ocxl: Expose the thread_id needed for wait on POWER9")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Alastair D'Silva <alastair@d-silva.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/ocxl/file.c