diff options
author | Roland Dreier <roland@purestorage.com> | 2018-10-20 18:45:04 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-10-24 03:18:33 +0200 |
commit | 7081fb629e434c13f126f191c67ff0c9939d9ef5 (patch) | |
tree | d3418df1295522fa1a0a2b6dd1293b1cb2850622 /drivers/target | |
parent | scsi: myrs: Fix the processor absent message in processor_show() (diff) | |
download | linux-7081fb629e434c13f126f191c67ff0c9939d9ef5.tar.xz linux-7081fb629e434c13f126f191c67ff0c9939d9ef5.zip |
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>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_alua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_alua.c b/drivers/target/target_core_alua.c index e46ca968009c..4f134b0c3e29 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; } |