Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2016 18:05:03 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295822 - head/sys/dev/qlxgb
Message-ID:  <201602191805.u1JI53eu081835@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 			}
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602191805.u1JI53eu081835>