diff options
author | 2020-09-16 10:30:05 +0800 | |
---|---|---|
committer | 2020-09-22 10:56:41 -0600 | |
commit | 2c5af98592f65517170c7bcc714566590d3f7397 (patch) | |
tree | 0b1855ea746a7931f2c17f2d3645d5039b89a5d9 /drivers/usb/cdns3/cdns3-imx.c | |
parent | vfio: fix a missed vfio group put in vfio_pin_pages (diff) | |
download | linux-dev-2c5af98592f65517170c7bcc714566590d3f7397.tar.xz linux-dev-2c5af98592f65517170c7bcc714566590d3f7397.zip |
vfio/type1: fix dirty bitmap calculation in vfio_dma_rw
The count of dirtied pages is not only determined by count of copied
pages, but also by the start offset.
e.g. if offset = PAGE_SIZE - 1, and *copied=2, the dirty pages count
is 2, instead of 1 or 0.
Fixes: d6a4c185660c ("vfio iommu: Implementation of ioctl for dirty pages tracking")
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions