summaryrefslogtreecommitdiff
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-18 09:12:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-18 09:12:51 +0100
commit7f9d04bc568d22e573a10e2a0a316599942786f7 (patch)
tree5cd3f32a22ebcc0f0faed657da2fbeb5dd5592c5 /drivers/net/virtio_net.c
parent9a38450ac3d1f665fdbe06a2fd2e06fcf70defbc (diff)
parent1291a0d5049dbc06baaaf66a9ff3f53db493b19b (diff)
Merge 4.15-rc4 into staging-next
We want the staging fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 19a985ef9104..559b215c0169 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -756,7 +756,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
int num_skb_frags;
buf = virtqueue_get_buf_ctx(rq->vq, &len, &ctx);
- if (unlikely(!ctx)) {
+ if (unlikely(!buf)) {
pr_debug("%s: rx error: %d buffers out of %d missing\n",
dev->name, num_buf,
virtio16_to_cpu(vi->vdev,