Commit 7081fb62 authored by Roland Dreier's avatar Roland Dreier Committed by Martin K. Petersen

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: default avatarRoland Dreier <roland@purestorage.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a0db8a75
...@@ -268,7 +268,7 @@ target_emulate_report_target_port_groups(struct se_cmd *cmd) ...@@ -268,7 +268,7 @@ target_emulate_report_target_port_groups(struct se_cmd *cmd)
} }
transport_kunmap_data_sg(cmd); transport_kunmap_data_sg(cmd);
target_complete_cmd(cmd, GOOD); target_complete_cmd_with_length(cmd, GOOD, rd_len + 4);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment