X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2F9p%2Ftrans_virtio.c;h=de7a9f532edc282d6ca0c8e8abc67fbef6633ab6;hb=23d077e28127ea96408032edcf9dd7062a0daaa3;hp=0117b9fb8480d4a51830ff0e59a591a6ffeb2105;hpb=e5e54bc86a1fed9849b22fd736c30b23c4719046;p=linux-2.6-omap-h63xx.git diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 0117b9fb848..de7a9f532ed 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -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), GFP_ATOMIC); if (!c->reqs[count].wq) { printk(KERN_ERR "Couldn't grow tag array\n"); @@ -183,8 +183,7 @@ pack_sg_list(struct scatterlist *sg, int start, int limit, char *data, sg_set_buf(&sg[index++], data, s); count -= s; data += s; - if (index > limit) - BUG(); + BUG_ON(index > limit); } return index-start;