]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 21 Mar 2018 03:49:46 +0000 (23:49 -0400)
commita3adc9d838d65c596b4479af572c8b1619d01d9f
treebe191828a1e8a85875f098a795ac59a4e9e94d5d
parent20d94194c82f726f7054d233d4a166e6bf323823
xen/gntdev: Fix off-by-one error when unmapping with holes

[ Upstream commit 951a010233625b77cde3430b4b8785a9a22968d1 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/xen/gntdev.c