Module Name: src Committed By: mlelstv Date: Sun Jun 5 15:04:31 UTC 2016
Modified Files: src/sys/dev/iscsi: iscsi_ioctl.c Log Message: use correct comparison of serial numbers To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/dev/iscsi/iscsi_ioctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/iscsi/iscsi_ioctl.c diff -u src/sys/dev/iscsi/iscsi_ioctl.c:1.20 src/sys/dev/iscsi/iscsi_ioctl.c:1.21 --- src/sys/dev/iscsi/iscsi_ioctl.c:1.20 Sun Jun 5 13:45:56 2016 +++ src/sys/dev/iscsi/iscsi_ioctl.c Sun Jun 5 15:04:31 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: iscsi_ioctl.c,v 1.20 2016/06/05 13:45:56 mlelstv Exp $ */ +/* $NetBSD: iscsi_ioctl.c,v 1.21 2016/06/05 15:04:31 mlelstv Exp $ */ /*- * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc. @@ -875,7 +875,7 @@ recreate_connection(iscsi_login_paramete /* if we get an error on reassign, restart the original request */ if (rc && ccb->pdu_waiting != NULL) { mutex_enter(&session->lock); - if (ccb->CmdSN < session->ExpCmdSN) { + if (sn_a_lt_b(ccb->CmdSN, session->ExpCmdSN)) { pdu = ccb->pdu_waiting; sn = get_sernum(session, !(pdu->pdu.Opcode & OP_IMMEDIATE));