]> Pileus Git - ~andy/linux/commit
xen-gntdev: Use map->vma for checking map validity
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 9 Feb 2011 20:11:59 +0000 (15:11 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Feb 2011 19:16:20 +0000 (14:16 -0500)
commit84e4075d60fc8f1c0b937765620bc784dd0c3d39
tree1d337c56f68d0e1a7ca9db3749dcaead46b35ba3
parent0ea22f072fb1b3da4307573c280ce904f0bf1589
xen-gntdev: Use map->vma for checking map validity

The is_mapped flag used to be set at the completion of the map operation,
but was not checked in all error paths. Use map->vma instead, which will
now be cleared if the initial grant mapping fails.

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