From: Roland Dreier Date: Sat, 20 Oct 2018 16:45:04 +0000 (-0700) Subject: scsi: target: Set response length for REPORT TARGET PORT GROUPS X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7081fb629e434c13f126f191c67ff0c9939d9ef5;p=linux.git scsi: target: Set response length for REPORT TARGET PORT GROUPS One more place where we can return the length we actually fill in. Signed-off-by: Roland Dreier Reviewed-by: Christoph Hellwig Signed-off-by: Martin K. Petersen --- diff --git a/drivers/target/target_core_alua.c b/drivers/target/target_core_alua.c index e46ca968009c0..4f134b0c3e29e 100644 --- a/drivers/target/target_core_alua.c +++ b/drivers/target/target_core_alua.c @@ -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; }