mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
ecf0dd6642
commit
e6c4219b54
1 changed files with 2 additions and 1 deletions
|
@ -1001,7 +1001,8 @@ static int pscsi_parse_cdb(struct se_cmd *cmd)
|
||||||
*/
|
*/
|
||||||
switch (cdb[0]) {
|
switch (cdb[0]) {
|
||||||
case REPORT_LUNS:
|
case REPORT_LUNS:
|
||||||
return spc_emulate_report_luns(cmd);
|
cmd->execute_cmd = spc_emulate_report_luns;
|
||||||
|
return 0;
|
||||||
case READ_6:
|
case READ_6:
|
||||||
case READ_10:
|
case READ_10:
|
||||||
case READ_12:
|
case READ_12:
|
||||||
|
|
Loading…
Reference in a new issue