svn commit: r312669 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Mon Jan 23 17:44:35 UTC 2017


Author: mav
Date: Mon Jan 23 17:44:33 2017
New Revision: 312669
URL: https://svnweb.freebsd.org/changeset/base/312669

Log:
  Fix overrun handling issue in r312291.
  
  MFC after:	1 week

Modified:
  head/sys/cam/ctl/ctl_frontend_iscsi.c

Modified: head/sys/cam/ctl/ctl_frontend_iscsi.c
==============================================================================
--- head/sys/cam/ctl/ctl_frontend_iscsi.c	Mon Jan 23 16:40:20 2017	(r312668)
+++ head/sys/cam/ctl/ctl_frontend_iscsi.c	Mon Jan 23 17:44:33 2017	(r312669)
@@ -2638,7 +2638,7 @@ cfiscsi_datamove_out(union ctl_io *io)
 	 * Complete write underflow.  Not a single byte to read.  Return.
 	 */
 	expected_len = ntohl(bhssc->bhssc_expected_data_transfer_length);
-	if (io->scsiio.kern_rel_offset > expected_len) {
+	if (io->scsiio.kern_rel_offset >= expected_len) {
 		io->scsiio.be_move_done(io);
 		return;
 	}


More information about the svn-src-all mailing list