iscsi: Fix missing is_lock unlock after cam_simq_alloc() failed
Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
b252fb2430
commit
fa66950534
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user