[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v5 03/10] xen/blkfront: pseudo support for multi hardware queues/rings
- To: Bob Liu <bob.liu@xxxxxxxxxx>
- From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
- Date: Mon, 16 Nov 2015 16:54:54 -0500
- Cc: jonathan.davies@xxxxxxxxxx, felipe.franciosi@xxxxxxxxxx, rafal.mielniczuk@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxx, axboe@xxxxxx, david.vrabel@xxxxxxxxxx, avanzini.arianna@xxxxxxxxx, roger.pau@xxxxxxxxxx
- Delivery-date: Mon, 16 Nov 2015 21:55:25 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
> - for (i = 0; i < info->nr_rings; i++)
> + for (i = 0; i < info->nr_rings; i++) {
> blkif_free_ring(&info->rinfo[i]);
> - kfree(info->rinfo);
> + kfree(info->rinfo);
> + info->ring = NULL;
> + }
Duh! Not it shouldn't. That is because we do info->ring = kzalloc(.. *
info->nr_rings)).
<sigh> That throws me off every time.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|