virtio_net: fix a typo in virtnet_alloc_queues()
Subsystems (3)
PATCH 1/1 virtio_net: fix a typo in virtnet_alloc_queues()
Obviously it should check !vi->rq.
Reported-by Fengguang Wu <[email protected]>
Cc Jason Wang <[email protected]>
Cc David S. Miller <[email protected]>
Signed-off-by Cong Wang <[email protected]>
---
drivers/net/virtio_net.c +1 -1
@@ -1347,7 +1347,7 @@ static int virtnet_alloc_queues(struct virtnet_info *vi)if (!vi->sq) goto err_sq; vi->rq =kzalloc (sizeof (*vi->rq) * vi->max_queue_pairs,GFP_KERNEL ); -if (!vi->sq) +if (!vi->rq) goto err_rq;INIT_DELAYED_WORK (&vi->refill, refill_work);
From: Cong Wang <[email protected]>
Date: Mon, 10 Dec 2012 20:24:08 +0800
Quoted 6 lines
Obviously it should check !vi->rq.
Reported-by Fengguang Wu <[email protected]>Cc Jason Wang <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied, thanks.