summaryrefslogtreecommitdiffstats
path: root/net/can/bcm.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-04-07 03:51:23 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-24 10:28:51 +0100
commit7eab8d9e8a722ca07bc785f73e21c3d3418defa6 (patch)
treef42c78986668929d2a2b05d88c94a36dab7c1a36 /net/can/bcm.c
parentswitch ipxrtr_route_packet() from iovec to msghdr (diff)
downloadlinux-7eab8d9e8a722ca07bc785f73e21c3d3418defa6.tar.xz
linux-7eab8d9e8a722ca07bc785f73e21c3d3418defa6.zip
new helper: memcpy_to_msg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/can/bcm.c')
-rw-r--r--net/can/bcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/bcm.c b/net/can/bcm.c
index b9a1f715df18..01671187e3fe 100644
--- a/net/can/bcm.c
+++ b/net/can/bcm.c
@@ -1555,7 +1555,7 @@ static int bcm_recvmsg(struct kiocb *iocb, struct socket *sock,
if (skb->len < size)
size = skb->len;
- err = memcpy_toiovec(msg->msg_iov, skb->data, size);
+ err = memcpy_to_msg(msg, skb->data, size);
if (err < 0) {
skb_free_datagram(sk, skb);
return err;