]> git.itanic.dy.fi Git - linux-stable/commit
xen/gntdev: Fix off-by-one error when unmapping with holes
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 9 Jan 2018 12:10:21 +0000 (12:10 +0000)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 10 Jan 2018 13:38:17 +0000 (08:38 -0500)
commit951a010233625b77cde3430b4b8785a9a22968d1
tree727e81424bd99be25ad0d9ac96114a847bb23f1a
parent66a640e7823da803fdb68d5d88f7a8fbd11c29e6
xen/gntdev: Fix off-by-one error when unmapping with holes

If the requested range has a hole, the calculation of the number of
pages to unmap is off by one. Fix it.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/gntdev.c