diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-10-10 16:52:48 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-11-06 23:55:45 -0500 |
commit | e6c4219b54ac9d0bd348ea59e606303f9aef1784 (patch) | |
tree | c91190da38d6f4c8e68371ff3b2d49a7bfef64c1 | |
parent | ecf0dd6642ecf7c0aff89c1be48b870586f4be4f (diff) |
pscsi: fix REPORT LUNS handling
We need to assign spc_emulate_report_luns to the execute_cmd callback
and not execute it directly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/target/target_core_pscsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index c3bcc17575d0..dd6ac7c380c9 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c | |||
@@ -1001,7 +1001,8 @@ static int pscsi_parse_cdb(struct se_cmd *cmd) | |||
1001 | */ | 1001 | */ |
1002 | switch (cdb[0]) { | 1002 | switch (cdb[0]) { |
1003 | case REPORT_LUNS: | 1003 | case REPORT_LUNS: |
1004 | return spc_emulate_report_luns(cmd); | 1004 | cmd->execute_cmd = spc_emulate_report_luns; |
1005 | return 0; | ||
1005 | case READ_6: | 1006 | case READ_6: |
1006 | case READ_10: | 1007 | case READ_10: |
1007 | case READ_12: | 1008 | case READ_12: |