diff options
Diffstat (limited to 'net/l2tp/l2tp_ppp.c')
-rw-r--r-- | net/l2tp/l2tp_ppp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c index b704a9356208..c559bcdf4679 100644 --- a/net/l2tp/l2tp_ppp.c +++ b/net/l2tp/l2tp_ppp.c | |||
@@ -208,7 +208,7 @@ static int pppol2tp_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
208 | else if (len < skb->len) | 208 | else if (len < skb->len) |
209 | msg->msg_flags |= MSG_TRUNC; | 209 | msg->msg_flags |= MSG_TRUNC; |
210 | 210 | ||
211 | err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, len); | 211 | err = skb_copy_datagram_msg(skb, 0, msg, len); |
212 | if (likely(err == 0)) | 212 | if (likely(err == 0)) |
213 | err = len; | 213 | err = len; |
214 | 214 | ||