]> git.baikalelectronics.ru Git - kernel.git/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)
commit41cb7e93e8485c286933fa3eb1c6e094ab20893a
tree727e81424bd99be25ad0d9ac96114a847bb23f1a
parente872f6867e025449e8b9487fb90411d9b636b4df
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