Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi ignore invalid ITT
details: https://anonhg.NetBSD.org/src/rev/6810634782d7
branches: trunk
changeset: 345685:6810634782d7
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 05 04:51:57 2016 +0000
description:
ignore invalid ITT
diffstat:
sys/dev/iscsi/iscsi_rcv.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r ede3ba2bda5a -r 6810634782d7 sys/dev/iscsi/iscsi_rcv.c
--- a/sys/dev/iscsi/iscsi_rcv.c Sun Jun 05 04:50:23 2016 +0000
+++ b/sys/dev/iscsi/iscsi_rcv.c Sun Jun 05 04:51:57 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_rcv.c,v 1.13 2016/06/05 04:36:05 mlelstv Exp $ */
+/* $NetBSD: iscsi_rcv.c,v 1.14 2016/06/05 04:51:57 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -125,6 +125,9 @@
ccb_t *ccb;
int cidx;
+ if (itt == 0xffffffff)
+ return NULL;
+
cidx = itt & 0xff;
if (cidx >= CCBS_PER_SESSION) {
return NULL;
Home |
Main Index |
Thread Index |
Old Index