Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9160
b: refs/heads/master
c: f2065e4
h: refs/heads/master
v: v3
  • Loading branch information
Hal Rosenstock authored and Roland Dreier committed Sep 21, 2005
1 parent 34ca10c commit ea3b724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 972d512a17c1bb7c4b784a9da2ca75745fcc6989
refs/heads/master: f2065e4242e5078d53c521b973c5cd4eae91eca2
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/core/mad_rmpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ static inline int get_mad_len(struct mad_rmpp_recv *rmpp_recv)

hdr_size = data_offset(rmpp_mad->mad_hdr.mgmt_class);
data_size = sizeof(struct ib_rmpp_mad) - hdr_size;
pad = data_size - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin);
if (pad > data_size || pad < 0)
pad = IB_MGMT_RMPP_DATA - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin);
if (pad > IB_MGMT_RMPP_DATA || pad < 0)
pad = 0;

return hdr_size + rmpp_recv->seg_num * data_size - pad;
Expand Down

0 comments on commit ea3b724

Please sign in to comment.