vfio: avoid possible overflow in vfio_iommu_type1_pin_pages
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 8 Apr 2020 07:12:34 +0000 (03:12 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 20 Apr 2020 18:40:16 +0000 (12:40 -0600)
commit0ea971f8dcd6dee78a9a30ea70227cf305f11ff7
treef0f4a20f29d687e32a624bae583175f4444d41a8
parent205323b8ceac57b0ac9d7dbc4d6fcdb18aa802ec
vfio: avoid possible overflow in vfio_iommu_type1_pin_pages

add parentheses to avoid possible vaddr overflow.

Fixes: a54eb55045ae ("vfio iommu type1: Add support for mediated devices")
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c