Date: Fri, 21 Jan 2022 21:42:56 GMT From: Ka Ho Ng <khng@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: fa669505340d - main - iscsi: Fix missing is_lock unlock after cam_simq_alloc() failed Message-ID: <202201212142.20LLgu4x050470@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=fa669505340d54e401917aa6a3d7defb9fc203da commit fa669505340d54e401917aa6a3d7defb9fc203da Author: Ka Ho Ng <khng@FreeBSD.org> AuthorDate: 2022-01-21 21:34:15 +0000 Commit: Ka Ho Ng <khng@FreeBSD.org> CommitDate: 2022-01-21 21:34:18 +0000 iscsi: Fix missing is_lock unlock after cam_simq_alloc() failed Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/dev/iscsi/iscsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c index 9f49db2ad935..aefae6920ae1 100644 --- a/sys/dev/iscsi/iscsi.c +++ b/sys/dev/iscsi/iscsi.c @@ -1540,6 +1540,7 @@ iscsi_ioctl_daemon_handoff(struct iscsi_softc *sc, ISCSI_SESSION_LOCK(is); is->is_devq = cam_simq_alloc(ic->ic_maxtags); if (is->is_devq == NULL) { + ISCSI_SESSION_UNLOCK(is); ISCSI_SESSION_WARN(is, "failed to allocate simq"); iscsi_session_terminate(is); return (ENOMEM);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201212142.20LLgu4x050470>