https://github.com/torvalds/linux
Revision 7cc31613734c4870ae32f5265d576ef296621343 authored by Qiushi Wu on 27 May 2020, 21:00:19 UTC, committed by Joerg Roedel on 29 May 2020, 13:27:50 UTC
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: d72e31c93746 ("iommu: IOMMU Groups")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Link: https://lore.kernel.org/r/20200527210020.6522-1-wu000273@umn.edu
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent ed3119e
History
Tip revision: 7cc31613734c4870ae32f5265d576ef296621343 authored by Qiushi Wu on 27 May 2020, 21:00:19 UTC
iommu: Fix reference count leak in iommu_group_alloc.
Tip revision: 7cc3161

back to top