Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268490
b: refs/heads/master
c: 5ac5bd8
h: refs/heads/master
v: v3
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Sep 19, 2011
1 parent 0d763e3 commit bf083b5
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 7518b9b8fc72a6c0ba67f33bdd4689c7dd28686a
refs/heads/master: 5ac5bd8754b3dabcf4aea7b5f4a28a1d8494a1b0
4 changes: 3 additions & 1 deletion trunk/drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,9 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
if (copy_from_user(&IoBuffer, argp, sizeof(IOCTL_BUFFER)))
return -EFAULT;

/* FIXME: don't accept any length from user */
if (IoBuffer.InputLength < sizeof(struct link_request))
return -EINVAL;

pvBuffer = kmalloc(IoBuffer.InputLength, GFP_KERNEL);
if (!pvBuffer)
return -ENOMEM;
Expand Down

0 comments on commit bf083b5

Please sign in to comment.