iommu/sva: Fix memory leak in iommu_sva_bind_device()
Free the handle when the domain allocation fails before unlocking and returning. Fixes: 092edadd ("iommu: Support mm PASID 1:n with sva domains") Signed-off-by:Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Reviewed-by:
Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20231213111450.2487861-1-harshit.m.mogalapalli@oracle.com Signed-off-by:
Joerg Roedel <jroedel@suse.de>
Loading
Please sign in to comment