projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2062cc2
)
virtio_net: fix a typo in virtnet_alloc_queues()
author
Amerigo Wang
<amwang@redhat.com>
Mon, 10 Dec 2012 02:24:08 +0000
(
02:24
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 10 Dec 2012 18:46:28 +0000
(13:46 -0500)
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>
drivers/net/virtio_net.c
patch
|
blob
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index a644eebb31d84c8d4f7fefd05f6e4934ea423343..68d64f0313eaa38d3324213f536e820365f16f93 100644
(file)
--- 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->
s
q)
+ if (!vi->
r
q)
goto err_rq;
INIT_DELAYED_WORK(&vi->refill, refill_work);