diff options
author | Alexander Motin <mav@FreeBSD.org> | 2017-01-23 17:44:33 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2017-01-23 17:44:33 +0000 |
commit | b96d9778eb097d4a80ad73e1025bf84b33c941ea (patch) | |
tree | 8fb0d4bdc50cede8cd21a9214d2c868d13a8f22c /sys | |
parent | 09d8a96e1cfe6eabe8c2caa9a1afc63fae7e305c (diff) | |
download | src-b96d9778eb097d4a80ad73e1025bf84b33c941ea.tar.gz src-b96d9778eb097d4a80ad73e1025bf84b33c941ea.zip |
Fix overrun handling issue in r312291.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=312669
Diffstat (limited to 'sys')
-rw-r--r-- | sys/cam/ctl/ctl_frontend_iscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c index ca4bda1e2965..0992fdb1352c 100644 --- a/sys/cam/ctl/ctl_frontend_iscsi.c +++ b/sys/cam/ctl/ctl_frontend_iscsi.c @@ -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; } |