xen-gntdev: Avoid unmapping ranges twice
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 9 Feb 2011 20:12:00 +0000 (15:12 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Feb 2011 19:16:21 +0000 (14:16 -0500)
commitb57c18694ea1641b691fa05ed8af0ce339fa430b
tree3fb3b050ef993092db69463fa56507f03eb31cf8
parent84e4075d60fc8f1c0b937765620bc784dd0c3d39
xen-gntdev: Avoid unmapping ranges twice

In paravirtualized domains, mn_invl_page or mn_invl_range_start can
unmap a segment of a mapped region without unmapping all pages. When
the region is later released, the pages will be unmapped twice, leading
to an incorrect -EINVAL return.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c