Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14478
b: refs/heads/master
c: eabc779
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Nov 18, 2005
1 parent 2ae8a99 commit ca2fecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 48fd0d1fdd357caa2de8cb4ce6af810df7535f43
refs/heads/master: eabc77935d8d2a761c88b9cbb6313bd54b6ddbb3
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/core/user_mad.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
int ret, length, hdr_len, copy_offset;
int rmpp_active = 0;

if (count < sizeof (struct ib_user_mad))
if (count < sizeof (struct ib_user_mad) + IB_MGMT_RMPP_HDR)
return -EINVAL;

length = count - sizeof (struct ib_user_mad);
Expand Down

0 comments on commit ca2fecf

Please sign in to comment.