From 88762d3574070b06e705da0a77f4e337d1dea468 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 20 May 2013 18:35:24 +0000 Subject: [PATCH] fcst: Fix WRITE SAME handling git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4872 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 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);