提交 07c540a0 编写于 作者: R Roger Pau Monne 提交者: Konrad Rzeszutek Wilk

xen-blkfront: free allocated page

Free the page allocated for the persistent grant.
Signed-off-by: NRoger Pau Monné <roger.pau@citrix.com>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 4d4f270f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册