Commit 9991a82a authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Joerg Roedel
Browse files

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: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20231213111450.2487861-1-harshit.m.mogalapalli@oracle.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent a63c357b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment