aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index b0a85d038796..73116512ca05 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -329,6 +329,7 @@ static int add_recvbuf_small(struct virtnet_info *vi, gfp_t gfp)
329 struct skb_vnet_hdr *hdr; 329 struct skb_vnet_hdr *hdr;
330 int err; 330 int err;
331 331
332 sg_init_table(sg, 2);
332 skb = netdev_alloc_skb_ip_align(vi->dev, MAX_PACKET_LEN); 333 skb = netdev_alloc_skb_ip_align(vi->dev, MAX_PACKET_LEN);
333 if (unlikely(!skb)) 334 if (unlikely(!skb))
334 return -ENOMEM; 335 return -ENOMEM;