aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2020-05-25 15:01:22 +0200
committerJoerg Roedel <[email protected]>2020-05-25 15:33:38 +0200
commit79659190ee972c05498c338e48d80cb45490c533 (patch)
tree906a605f777a78b031fc7d12e3e77c3b3432ebf3 /drivers/usb/cdns3/cdns3-imx.c
parent70b8170e55d3ca9503a53211967faee6b5f18b19 (diff)
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: 6e1aa2049154 ("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]/
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions