Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9126
b: refs/heads/master
c: eff4c65
h: refs/heads/master
v: v3
  • Loading branch information
Hal Rosenstock authored and Roland Dreier committed Sep 19, 2005
1 parent 52d4566 commit 6ec4963
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 6577ae51cf52f5fb0e4a85e673dd7bf2d0074e3e
refs/heads/master: eff4c654b1a4a5e5493fbdc3affa6dd48765c085
5 changes: 3 additions & 2 deletions trunk/drivers/infiniband/core/user_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,11 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
ret = -EINVAL;
goto err_ah;
}
/* Validate that management class can support RMPP */

/* Validate that the management class can support RMPP */
if (rmpp_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_ADM) {
hdr_len = offsetof(struct ib_sa_mad, data);
data_len = length;
data_len = length - hdr_len;
} else if ((rmpp_mad->mad_hdr.mgmt_class >= IB_MGMT_CLASS_VENDOR_RANGE2_START) &&
(rmpp_mad->mad_hdr.mgmt_class <= IB_MGMT_CLASS_VENDOR_RANGE2_END)) {
hdr_len = offsetof(struct ib_vendor_mad, data);
Expand Down

0 comments on commit 6ec4963

Please sign in to comment.