svn commit: r295822 - head/sys/dev/qlxgb

Pedro F. Giffuni pfg at FreeBSD.org
Fri Feb 19 18:05:04 UTC 2016


Author: pfg
Date: Fri Feb 19 18:05:02 2016
New Revision: 295822
URL: https://svnweb.freebsd.org/changeset/base/295822

Log:
  qlxgb: fix mismatch.
  
  Found by:	PVS Static Analysis
  Reviewed by:	davidcs
  MFC after:	1 month

Modified:
  head/sys/dev/qlxgb/qla_hw.c

Modified: head/sys/dev/qlxgb/qla_hw.c
==============================================================================
--- head/sys/dev/qlxgb/qla_hw.c	Fri Feb 19 17:34:11 2016	(r295821)
+++ head/sys/dev/qlxgb/qla_hw.c	Fri Feb 19 18:05:02 2016	(r295822)
@@ -797,7 +797,8 @@ qla_tx_tso(qla_host_t *ha, struct mbuf *
 			}
 
 			if ((*tcp_opt != 0x01) || (*(tcp_opt + 1) != 0x01) ||
-				(*(tcp_opt + 2) != 0x08) || (*(tcp_opt + 2) != 10)) {
+				(*(tcp_opt + 2) != 0x08) ||
+				(*(tcp_opt + 3) != 10)) {
 				return -1;
 			}
 		}


More information about the svn-src-all mailing list