[PATCH AUTOSEL 6.1 11/25] nvme-auth: unlock mutex in one place only
Sasha Levin
sashal at kernel.org
Tue Nov 28 13:07:27 PST 2023
From: Mark O'Donovan <shiftee at posteo.net>
[ Upstream commit 616add70bfdc0274a253e84fc78155c27aacde91 ]
Signed-off-by: Mark O'Donovan <shiftee at posteo.net>
Reviewed-by: Christoph Hellwig <hch at lst.de>
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Keith Busch <kbusch at kernel.org>
Signed-off-by: Sasha Levin <sashal at kernel.org>
---
drivers/nvme/host/auth.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c
index 9dfd3d0293054..7c9dfb420c464 100644
--- a/drivers/nvme/host/auth.c
+++ b/drivers/nvme/host/auth.c
@@ -758,6 +758,7 @@ static void nvme_queue_auth_work(struct work_struct *work)
dev_dbg(ctrl->device, "%s: qid %d host response\n",
__func__, chap->qid);
ret = nvme_auth_dhchap_setup_host_response(ctrl, chap);
+ mutex_unlock(&ctrl->dhchap_auth_mutex);
if (ret) {
chap->error = ret;
goto fail2;
--
2.42.0
More information about the Linux-nvme
mailing list