diff options
| author | Yishai Hadas <[email protected]> | 2024-11-14 09:53:17 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2024-11-14 18:42:17 +0000 |
| commit | 22e87bf3f77c18f5982c19ffe2732ef0c7a25f16 (patch) | |
| tree | e52c5b99213c07acac74b4f912415bb28f7990e3 /drivers/pci/controller/pci-host-generic.c | |
| parent | vfio/virtio: Enable live migration once VIRTIO_PCI was configured (diff) | |
| download | kernel-22e87bf3f77c18f5982c19ffe2732ef0c7a25f16.tar.gz kernel-22e87bf3f77c18f5982c19ffe2732ef0c7a25f16.zip | |
vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()
Fix an unwind issue in mlx5vf_add_migration_pages().
If a set of pages is allocated but fails to be added to the SG table,
they need to be freed to prevent a memory leak.
Any pages successfully added to the SG table will be freed as part of
mlx5vf_free_data_buffer().
Fixes: 6fadb021266d ("vfio/mlx5: Implement vfio_pci driver for mlx5 devices")
Signed-off-by: Yishai Hadas <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
