From 6c5328df1db9e9f814cce79791e240781ebef319 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 13 Aug 2013 18:41:17 +0000 Subject: [PATCH] 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 --- fcst/ft_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcst/ft_io.c b/fcst/ft_io.c index 2a3a5cb51..f1682cb20 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->bufflen) + if (fcmd->write_data_len == bufflen) scst_rx_data(cmd, SCST_RX_STATUS_SUCCESS, SCST_CONTEXT_THREAD); drop: fc_frame_free(fp);