Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6c4219b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nicholas Bellinger
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent ecf0dd66
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1001,7 +1001,8 @@ static int pscsi_parse_cdb(struct se_cmd *cmd)
	 */
	switch (cdb[0]) {
	case REPORT_LUNS:
		return spc_emulate_report_luns(cmd);
		cmd->execute_cmd = spc_emulate_report_luns;
		return 0;
	case READ_6:
	case READ_10:
	case READ_12: