fcst: Use proper length variable for bidir commands in ft_recv_write_data()

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4966 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-08-13 18:41:17 +00:00
parent 76cc1e8857
commit 6c5328df1d
+1 -1
View File
@@ -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->bufflen)
if (fcmd->write_data_len == bufflen)
scst_rx_data(cmd, SCST_RX_STATUS_SUCCESS, SCST_CONTEXT_THREAD);
drop:
fc_frame_free(fp);