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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
Roland Dreier 2018-10-20 09:45:04 -07:00 • committed by Martin K. Petersen
commit 7081fb629e

View file

@ -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;
}