Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202582
b: refs/heads/master
c: 042604d
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 31, 2010
1 parent 1327613 commit 0a95a91
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: c146fc9fc9bc1dc0f629fe83d49f32ab0f11bfdc
refs/heads/master: 042604d2a3ee59c84f8293988caf35bac5de9eb3
11 changes: 3 additions & 8 deletions trunk/net/dccp/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,14 +473,9 @@ static int dccp_setsockopt_ccid(struct sock *sk, int type,
if (optlen < 1 || optlen > DCCP_FEAT_MAX_SP_VALS)
return -EINVAL;

val = kmalloc(optlen, GFP_KERNEL);
if (val == NULL)
return -ENOMEM;

if (copy_from_user(val, optval, optlen)) {
kfree(val);
return -EFAULT;
}
val = memdup_user(optval, optlen);
if (IS_ERR(val))
return PTR_ERR(val);

lock_sock(sk);
if (type == DCCP_SOCKOPT_TX_CCID || type == DCCP_SOCKOPT_CCID)
Expand Down

0 comments on commit 0a95a91

Please sign in to comment.