Skip to contentSkip to conversation

target: Set response length for REPORT TARGET PORT GROUPS

PATCH Applied Roland Dreier 3 participants 3 messages Oct 20, 2018 – Oct 24, 2018 SCSI target

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 target: Set response length for REPORT TARGET PORT GROUPS

From: Roland Dreier <[email protected]>

One more place where we can return the length we actually fill in.

---
 drivers/target/target_core_alua.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_alua.c +1 -1
index e46ca968009c..4f134b0c3e29 100644
@@ -268,7 +268,7 @@ target_emulate_report_target_port_groups(struct se_cmd *cmd)
 	}
 	transport_kunmap_data_sg(cmd);
 
-	target_complete_cmd(cmd, GOOD);
+	target_complete_cmd_with_length(cmd, GOOD, rd_len + 4);
 	return 0;
 }
 
Signature · 1 line
2.19.1
#2 lore raw
In reply to Roland Dreier

Roland,

Quoted 1 line

One more place where we can return the length we actually fill in.

Applied to 4.20/scsi-queue, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering