Skip to content

Commit

Permalink
scsi: target: Set response length for REPORT TARGET PORT GROUPS
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rolandd authored and martinkpetersen committed Oct 24, 2018
1 parent a0db8a7 commit 7081fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_alua.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7081fb6

Please sign in to comment.