diff options
Diffstat (limited to 'net/can/raw.c')
-rw-r--r-- | net/can/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/raw.c b/net/can/raw.c index 081e81fd017f..0e4004fb6876 100644 --- a/net/can/raw.c +++ b/net/can/raw.c | |||
@@ -703,7 +703,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
703 | can_skb_reserve(skb); | 703 | can_skb_reserve(skb); |
704 | can_skb_prv(skb)->ifindex = dev->ifindex; | 704 | can_skb_prv(skb)->ifindex = dev->ifindex; |
705 | 705 | ||
706 | err = memcpy_fromiovec(skb_put(skb, size), msg->msg_iov, size); | 706 | err = memcpy_from_msg(skb_put(skb, size), msg, size); |
707 | if (err < 0) | 707 | if (err < 0) |
708 | goto free_skb; | 708 | goto free_skb; |
709 | 709 | ||