[PATCH 1/2] xen:blkfront: fix compile error

From: Bob Liu
Date: Wed Nov 25 2015 - 14:56:32 EST


Fix this build error:
drivers/block/xen-blkfront.c: In function âblkif_freeâ:
drivers/block/xen-blkfront.c:1234:6: error: âstruct blkfront_infoâ has no
member named âringâ info->ring = NULL;

Signed-off-by: Bob Liu <bob.liu@xxxxxxxxxx>
---
drivers/block/xen-blkfront.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 625604d..ef5ce43 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1231,7 +1231,7 @@ static void blkif_free(struct blkfront_info *info, int suspend)
blkif_free_ring(&info->rinfo[i]);

kfree(info->rinfo);
- info->ring = NULL;
+ info->rinfo = NULL;
info->nr_rings = 0;
}

--
1.8.3.1


--------------020000070800000003070609
Content-Type: text/x-patch;
name="0002-xen-blkfront-realloc-ring-info-in-blkif_resume.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-xen-blkfront-realloc-ring-info-in-blkif_resume.patch"