diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 07ac95014ecb..108d7f381b87 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -2949,8 +2949,7 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
2949 | vnet_hdr.flags = VIRTIO_NET_HDR_F_DATA_VALID; | 2949 | vnet_hdr.flags = VIRTIO_NET_HDR_F_DATA_VALID; |
2950 | } /* else everything is zero */ | 2950 | } /* else everything is zero */ |
2951 | 2951 | ||
2952 | err = memcpy_toiovec(msg->msg_iov, (void *)&vnet_hdr, | 2952 | err = memcpy_to_msg(msg, (void *)&vnet_hdr, vnet_hdr_len); |
2953 | vnet_hdr_len); | ||
2954 | if (err < 0) | 2953 | if (err < 0) |
2955 | goto out_free; | 2954 | goto out_free; |
2956 | } | 2955 | } |