From: Roger Pau Monne Date: Fri, 16 Nov 2012 18:26:47 +0000 (+0100) Subject: xen-blkfront: free allocated page X-Git-Tag: v3.8-rc7~11^2~3^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07c540a0b5f4674538b57ad85bc9306e44fb45dd;p=profile%2Fivi%2Fkernel-x86-ivi.git xen-blkfront: free allocated page Free the page allocated for the persistent grant. Signed-off-by: Roger Pau Monné Signed-off-by: Konrad Rzeszutek Wilk --- 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;