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;
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to