svn commit: r299691 - head/sys/dev/isp

Alexander Motin mav at FreeBSD.org
Fri May 13 18:55:05 UTC 2016


Author: mav
Date: Fri May 13 18:55:03 2016
New Revision: 299691
URL: https://svnweb.freebsd.org/changeset/base/299691

Log:
  Fix FCP_CMD LENGTH mask in ATIO7 IOCB.
  
  This caused "long IU length (16384) ignored" errors following by others.
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/isp/isp_target.c

Modified: head/sys/dev/isp/isp_target.c
==============================================================================
--- head/sys/dev/isp/isp_target.c	Fri May 13 18:54:48 2016	(r299690)
+++ head/sys/dev/isp/isp_target.c	Fri May 13 18:55:03 2016	(r299691)
@@ -169,7 +169,7 @@ isp_target_notify(ispsoftc_t *isp, void 
 		 * Check for and do something with commands whose
 		 * IULEN extends past a single queue entry.
 		 */
-		len = at7iop->at_ta_len & 0xfffff;
+		len = at7iop->at_ta_len & 0x0fff;
 		if (len > (QENTRY_LEN - 8)) {
 			len -= (QENTRY_LEN - 8);
 			isp_prt(isp, ISP_LOGINFO, "long IU length (%d) ignored", len);


More information about the svn-src-head mailing list