]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/gntalloc: release grant references on page free
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 28 Nov 2011 16:49:10 +0000 (11:49 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 Feb 2012 19:07:24 +0000 (14:07 -0500)
commitbdc0d9e97318fe73542ff1ae1dd5e6252e4db1a1
treedf4c0bd1f95c778da41e25cd9c91d6769aaac199
parent9a2adbb89113933c93412def4717a50f2f881b86
xen/gntalloc: release grant references on page free

gnttab_end_foreign_access_ref does not return the grant reference it is
passed to the free list; gnttab_free_grant_reference needs to be
explicitly called. While gnttab_end_foreign_access provides a wrapper
for this, it is unsuitable because it does not return errors.

Reported-by: Anil Madhavapeddy <anil@recoil.org>
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntalloc.c