|
@@ -714,7 +714,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
|
|
int num_skb_frags;
|
|
int num_skb_frags;
|
|
|
|
|
|
buf = virtqueue_get_buf_ctx(rq->vq, &len, &ctx);
|
|
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",
|
|
pr_debug("%s: rx error: %d buffers out of %d missing\n",
|
|
dev->name, num_buf,
|
|
dev->name, num_buf,
|
|
virtio16_to_cpu(vi->vdev,
|
|
virtio16_to_cpu(vi->vdev,
|