diff options
author | 2014-11-24 17:48:04 -0500 | |
---|---|---|
committer | 2014-12-09 16:29:10 -0500 | |
commit | ba5684083c7b35e492dd856be2f9724b0efea416 (patch) | |
tree | 4c60d53dad39f3f962cd1102cacb5702094faca7 /drivers/net/ppp/ppp_generic.c | |
parent | switch memcpy_to_msg() and skb_copy{,_and_csum}_datagram_msg() to primitives (diff) | |
download | linux-ba5684083c7b35e492dd856be2f9724b0efea416.tar.gz linux-ba5684083c7b35e492dd856be2f9724b0efea416.tar.bz2 linux-ba5684083c7b35e492dd856be2f9724b0efea416.zip |
ppp_read(): switch to skb_copy_datagram_iter()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/net/ppp/ppp_generic.c')
-rw-r--r-- | drivers/net/ppp/ppp_generic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 794a47329368..af034dba9bd6 100644 --- a/drivers/net/ppp/ppp_generic.c +++ b/drivers/net/ppp/ppp_generic.c @@ -417,6 +417,7 @@ static ssize_t ppp_read(struct file *file, char __user *buf, ssize_t ret; struct sk_buff *skb = NULL; struct iovec iov; + struct iov_iter to; ret = count; @@ -462,7 +463,8 @@ static ssize_t ppp_read(struct file *file, char __user *buf, ret = -EFAULT; iov.iov_base = buf; iov.iov_len = count; - if (skb_copy_datagram_iovec(skb, 0, &iov, skb->len)) + iov_iter_init(&to, READ, &iov, 1, count); + if (skb_copy_datagram_iter(skb, 0, &to, skb->len)) goto outf; ret = skb->len; |