Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2011 19:16:52 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r226579 - stable/8/sys/dev/iscsi/initiator
Message-ID:  <201110201916.p9KJGqaJ087932@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Oct 20 19:16:52 2011
New Revision: 226579
URL: http://svn.freebsd.org/changeset/base/226579

Log:
  MFC r226208:
  Do not ignore block offsets.
  
  PR:	kern/160943

Modified:
  stable/8/sys/dev/iscsi/initiator/iscsi_subr.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/dev/iscsi/initiator/iscsi_subr.c
==============================================================================
--- stable/8/sys/dev/iscsi/initiator/iscsi_subr.c	Thu Oct 20 18:54:05 2011	(r226578)
+++ stable/8/sys/dev/iscsi/initiator/iscsi_subr.c	Thu Oct 20 19:16:52 2011	(r226579)
@@ -84,6 +84,7 @@ iscsi_r2t(isc_session_t *sp, pduq_t *opq
 	       caddr_t		bp = csio->data_ptr;
 
 	       bo = ntohl(r2t->bo);
+	       bp += MIN(bo, edtl - ddtl);
 	       bleft = ddtl;
 
 	       if(sp->opt.maxXmitDataSegmentLength > 0) // danny's RFC



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