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>
Fri, 16 Dec 2011 16:26:02 +0000 (11:26 -0500)
commit0105d2b4fbc24c2fb6ca9bae650784dd7ddf0b12
tree9442598b5e9d959ccfd6661e3c727840692028dc
parentc3b3f16d1bceb5ac5f21528f889810b4ac5a3596
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
This page took 0.024055 seconds and 5 git commands to generate.