mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
target/iscsi: Fix endianness in an error message
Since hdr->offset is a big endian number, convert it to CPU endian before printing it. Signed-off-by: Bart Van Assche <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Mike Christie <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
919765e968
commit
de3493aea6
1 changed files with 3 additions and 3 deletions
|
|
@ -1460,9 +1460,9 @@ __iscsit_check_dataout_hdr(struct iscsi_conn *conn, void *buf,
|
|||
iscsit_mod_dataout_timer(cmd);
|
||||
|
||||
if ((be32_to_cpu(hdr->offset) + payload_length) > cmd->se_cmd.data_length) {
|
||||
pr_err("DataOut Offset: %u, Length %u greater than"
|
||||
" iSCSI Command EDTL %u, protocol error.\n",
|
||||
hdr->offset, payload_length, cmd->se_cmd.data_length);
|
||||
pr_err("DataOut Offset: %u, Length %u greater than iSCSI Command EDTL %u, protocol error.\n",
|
||||
be32_to_cpu(hdr->offset), payload_length,
|
||||
cmd->se_cmd.data_length);
|
||||
return iscsit_reject_cmd(cmd, ISCSI_REASON_BOOKMARK_INVALID, buf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue