diff options
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_initiator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_initiator.c b/drivers/infiniband/ulp/iser/iser_initiator.c index 83247f1fdf72..08dc81c46f41 100644 --- a/drivers/infiniband/ulp/iser/iser_initiator.c +++ b/drivers/infiniband/ulp/iser/iser_initiator.c | |||
@@ -405,7 +405,7 @@ int iser_send_data_out(struct iscsi_conn *conn, | |||
405 | struct iser_dto *send_dto = NULL; | 405 | struct iser_dto *send_dto = NULL; |
406 | unsigned long buf_offset; | 406 | unsigned long buf_offset; |
407 | unsigned long data_seg_len; | 407 | unsigned long data_seg_len; |
408 | unsigned int itt; | 408 | uint32_t itt; |
409 | int err = 0; | 409 | int err = 0; |
410 | 410 | ||
411 | if (!iser_conn_state_comp(iser_conn->ib_conn, ISER_CONN_UP)) { | 411 | if (!iser_conn_state_comp(iser_conn->ib_conn, ISER_CONN_UP)) { |
@@ -416,7 +416,7 @@ int iser_send_data_out(struct iscsi_conn *conn, | |||
416 | if (iser_check_xmit(conn, ctask)) | 416 | if (iser_check_xmit(conn, ctask)) |
417 | return -ENOBUFS; | 417 | return -ENOBUFS; |
418 | 418 | ||
419 | itt = ntohl(hdr->itt); | 419 | itt = (__force uint32_t)hdr->itt; |
420 | data_seg_len = ntoh24(hdr->dlength); | 420 | data_seg_len = ntoh24(hdr->dlength); |
421 | buf_offset = ntohl(hdr->offset); | 421 | buf_offset = ntohl(hdr->offset); |
422 | 422 | ||