From b96d9778eb097d4a80ad73e1025bf84b33c941ea Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Mon, 23 Jan 2017 17:44:33 +0000 Subject: [PATCH] Fix overrun handling issue in r312291. MFC after: 1 week --- sys/cam/ctl/ctl_frontend_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c index ca4bda1e296..0992fdb1352 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; }