diff options
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 2c9d252072a2..f027a708b7e0 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
@@ -382,7 +382,7 @@ static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4, | |||
382 | 382 | ||
383 | skb->transport_header = skb->network_header; | 383 | skb->transport_header = skb->network_header; |
384 | err = -EFAULT; | 384 | err = -EFAULT; |
385 | if (memcpy_fromiovecend((void *)iph, msg->msg_iter.iov, 0, length)) | 385 | if (memcpy_from_msg(iph, msg, length)) |
386 | goto error_free; | 386 | goto error_free; |
387 | 387 | ||
388 | iphlen = iph->ihl * 4; | 388 | iphlen = iph->ihl * 4; |