Commit 15e29b8b authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

net/9p/trans_virtio.c: kmalloc() enough memory

The Coverity checker spotted that less memory than required was
Signed-off-by: default avatarAdrian Bunk <>
Signed-off-by: default avatarDavid S. Miller <>
parent 76e87306
......@@ -110,7 +110,7 @@ static struct p9_req_t *p9_lookup_tag(struct virtio_chan *c, u16 tag)
for (count = old_max; count < c->max_tag; count++) {
c->reqs[count].status = REQ_STATUS_IDLE;
c->reqs[count].wq = kmalloc(sizeof(wait_queue_t),
c->reqs[count].wq = kmalloc(sizeof(wait_queue_head_t),
if (!c->reqs[count].wq) {
printk(KERN_ERR "Couldn't grow tag array\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment