Skip to content

Commit 187a580

Browse files
mikechristiemartinkpetersen
authored andcommitted
scsi: iscsi: Fix set_param() handling
In commit 9e67600 ("scsi: iscsi: Fix race condition between login and sync thread") we meant to add a check where before we call ->set_param() we make sure the iscsi_cls_connection is bound. The problem is that between versions 4 and 5 of the patch the deletion of the unchecked set_param() call was dropped so we ended up with 2 calls. As a result we can still hit a crash where we access the unbound connection on the first call. This patch removes that first call. Fixes: 9e67600 ("scsi: iscsi: Fix race condition between login and sync thread") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Lee Duncan <[email protected]> Reviewed-by: Li Feng <[email protected]> Signed-off-by: Mike Christie <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 50b6cb3 commit 187a580

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/scsi_transport_iscsi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,8 +2930,6 @@ iscsi_set_param(struct iscsi_transport *transport, struct iscsi_uevent *ev)
29302930
session->recovery_tmo = value;
29312931
break;
29322932
default:
2933-
err = transport->set_param(conn, ev->u.set_param.param,
2934-
data, ev->u.set_param.len);
29352933
if ((conn->state == ISCSI_CONN_BOUND) ||
29362934
(conn->state == ISCSI_CONN_UP)) {
29372935
err = transport->set_param(conn, ev->u.set_param.param,

0 commit comments

Comments
 (0)