diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-12-10 02:24:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-10 13:46:28 -0500 |
commit | 008d4278072216bd2459a6e41b07b688fe95ee83 (patch) | |
tree | 87b27dd47918bc96e2dc0803a7640a822a827f46 /drivers/net/virtio_net.c | |
parent | 2062cc20d0a8e370163efccbee555347e17100c0 (diff) | |
download | lwn-008d4278072216bd2459a6e41b07b688fe95ee83.tar.gz lwn-008d4278072216bd2459a6e41b07b688fe95ee83.zip |
virtio_net: fix a typo in virtnet_alloc_queues()
Obviously it should check !vi->rq.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index a644eebb31d8..68d64f0313ea 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -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); |