Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190610
b: refs/heads/master
c: 19937d0
h: refs/heads/master
v: v3
  • Loading branch information
Simon Arlott authored and David S. Miller committed May 3, 2010
1 parent ece6cb3 commit 713a4e4
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ea8420e9f5dff7324607671f0b7ab7fbf726339d
refs/heads/master: 19937d0482cfe194fe52e97e59aa58ec911de0d1
5 changes: 4 additions & 1 deletion trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ static ssize_t ppp_read(struct file *file, char __user *buf,
DECLARE_WAITQUEUE(wait, current);
ssize_t ret;
struct sk_buff *skb = NULL;
struct iovec iov;

ret = count;

Expand Down Expand Up @@ -448,7 +449,9 @@ static ssize_t ppp_read(struct file *file, char __user *buf,
if (skb->len > count)
goto outf;
ret = -EFAULT;
if (copy_to_user(buf, skb->data, skb->len))
iov.iov_base = buf;
iov.iov_len = count;
if (skb_copy_datagram_iovec(skb, 0, &iov, skb->len))
goto outf;
ret = skb->len;

Expand Down

0 comments on commit 713a4e4

Please sign in to comment.