diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-11-16 19:26:47 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-11-26 14:58:11 -0500 |
commit | 07c540a0b5f4674538b57ad85bc9306e44fb45dd (patch) | |
tree | d7181faf6d3c84da37be8a7ad7c5f4b30d3ed629 /drivers/block | |
parent | 4d4f270f1880e52d89a33c944ee86f23d6c85541 (diff) | |
download | op-kernel-dev-07c540a0b5f4674538b57ad85bc9306e44fb45dd.zip op-kernel-dev-07c540a0b5f4674538b57ad85bc9306e44fb45dd.tar.gz |
xen-blkfront: free allocated page
Free the page allocated for the persistent grant.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/xen-blkfront.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index f1de806..96e9b00 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -806,6 +806,7 @@ static void blkif_free(struct blkfront_info *info, int suspend) all_gnts = llist_del_all(&info->persistent_gnts); llist_for_each_entry(persistent_gnt, all_gnts, node) { gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); + __free_page(pfn_to_page(persistent_gnt->pfn)); kfree(persistent_gnt); } info->persistent_gnts_c = 0; |