mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix overrun handling issue in r312291.
MFC after: 1 week
This commit is contained in:
parent
09d8a96e1c
commit
b96d9778eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue