Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202578
b: refs/heads/master
c: 16dff91
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 31, 2010
1 parent ca2d6a0 commit 88276e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: d7fd1b5747fff3bde92777bcaf705d98ae6f8b6f
refs/heads/master: 16dff91804777efbb0ce18b0a7e54c55e86b7beb
11 changes: 3 additions & 8 deletions trunk/net/can/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,9 @@ static int raw_setsockopt(struct socket *sock, int level, int optname,

if (count > 1) {
/* filter does not fit into dfilter => alloc space */
filter = kmalloc(optlen, GFP_KERNEL);
if (!filter)
return -ENOMEM;

if (copy_from_user(filter, optval, optlen)) {
kfree(filter);
return -EFAULT;
}
filter = memdup_user(optval, optlen);
if (IS_ERR(filter))
return PTR_ERR(filter);
} else if (count == 1) {
if (copy_from_user(&sfilter, optval, sizeof(sfilter)))
return -EFAULT;
Expand Down

0 comments on commit 88276e4

Please sign in to comment.