Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu: Fix reference count leak in iommu_group_alloc.
[ Upstream commit 7cc3161 ] kobject_init_and_add() takes reference even when it fails. Thus, when kobject_init_and_add() returns an error, kobject_put() must be called to properly clean up the kobject. Fixes: d72e31c ("iommu: IOMMU Groups") Signed-off-by: Qiushi Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information