You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iommu: Don't take group reference in iommu_alloc_default_domain()
The iommu_alloc_default_domain() function takes a reference to an IOMMU
group without releasing it. This causes the group to never be released,
with undefined side effects.
The function has only one call-site, which takes a group reference on
its own, so to fix this leak, do not take another reference in
iommu_alloc_default_domain() and pass the group as a function parameter
instead.
Fixes: 6e1aa20 ("iommu: Move default domain allocation to iommu_probe_device()")
Reported-by: Sai Prakash Ranjan <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Tested-by: Sai Prakash Ranjan <[email protected]>
Cc: Sai Prakash Ranjan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reference: https://lore.kernel.org/lkml/[email protected]/
0 commit comments