Fix overrun handling issue in r312291.
MFC after: 1 week
This commit is contained in:
parent
09d8a96e1c
commit
b96d9778eb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user