linux-stable/drivers/vdpa
Jason Wang 54b210c90d vdpasim: fix memory leak when freeing IOTLBs
[ Upstream commit 0b7a04a30e ]

After commit bda324fd03 ("vdpasim: control virtqueue support"),
vdpasim->iommu became an array of IOTLB, so we should clean the
mappings of each free one by one instead of just deleting the ranges
in the first IOTLB which may leak maps.

Fixes: bda324fd03 ("vdpasim: control virtqueue support")
Cc: Gautam Dawar <gautam.dawar@xilinx.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221213090717.61529-1-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Gautam Dawar <gautam.dawar@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-12 12:00:34 +01:00
..
alibaba vdpa: multiple address spaces support 2022-05-31 12:44:27 -04:00
ifcvf vdpa/ifcvf: fix the calculation of queuepair 2022-09-27 18:30:48 -04:00
mlx5 vdpa/mlx5: Fix wrong mac address deletion 2023-01-12 12:00:33 +01:00
vdpa_sim vdpasim: fix memory leak when freeing IOTLBs 2023-01-12 12:00:34 +01:00
vdpa_user vduse: prevent uninitialized memory accesses 2022-09-27 18:32:45 -04:00
virtio_pci vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove 2023-01-12 12:00:34 +01:00
Kconfig eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
Makefile eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
vdpa.c vDPA: fix 'cast to restricted le16' warnings in vdpa.c 2022-08-11 04:26:08 -04:00