OSDN Git Service

crypto: octeontx2 - fix missing unlock
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 25 Feb 2022 07:27:24 +0000 (15:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:49:22 +0000 (10:49 +1200)
commit280ee3c3aaa8158e69db5453d8ffd11fce49979c
tree170f0ea5237f24a5a34d655b3c5d12419edfcba2
parente6205ad58a7ac194abfb33897585b38687d797fa
crypto: octeontx2 - fix missing unlock

Add the missing unlock before return from error path.

Fixes: 4363f3d3ce8f ("crypto: octeontx2 - add synchronization between mailbox accesses")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c