From 9562e5679be3c7b12a0b912423d5c88b29c7816f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 19 Jul 2010 17:48:14 +0000 Subject: [PATCH] More unexisting LUNs handling fixes git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1843 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 108e680f4..bb00a1508 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -856,6 +856,7 @@ static int scst_set_lun_not_supported_request_sense(struct scst_cmd *cmd, TRACE_BUFFER("Sense set", sg_virt(cmd->sg), sense_len); + cmd->data_direction = SCST_DATA_READ; scst_set_resp_data_len(cmd, sense_len); res = 0; @@ -905,6 +906,7 @@ static int scst_set_lun_not_supported_inquiry(struct scst_cmd *cmd) TRACE_BUFFER("INQUIRY for not supported LUN set", buf, len); + cmd->data_direction = SCST_DATA_READ; scst_set_resp_data_len(cmd, len); res = 0;