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 <roland@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Roland Dreier 2018-10-20 09:45:04 -07:00 committed by Martin K. Petersen
parent a0db8a7516
commit 7081fb629e
1 changed files with 1 additions and 1 deletions

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