diff --git a/fcst/ft_io.c b/fcst/ft_io.c index 70eafb883..2a3a5cb51 100644 --- a/fcst/ft_io.c +++ b/fcst/ft_io.c @@ -265,7 +265,7 @@ void ft_recv_write_data(struct scst_cmd *cmd, struct fc_frame *fp) else scst_put_buf(cmd, buf); } - if (fcmd->write_data_len == cmd->data_len) + if (fcmd->write_data_len == cmd->bufflen) scst_rx_data(cmd, SCST_RX_STATUS_SUCCESS, SCST_CONTEXT_THREAD); drop: fc_frame_free(fp);