]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit867703f5e14b1f0e9b0d0e373bffeff3e3f0be74
tree1ce9a3ff3b86a8e95d36b181586941f22d462af1
parentd0dd248c0917f2e06dfdb1c96e4279d233f24130
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: 3d2369b01ba7 ("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