summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-27 23:00:19 +0200
committerJoerg Roedel <jroedel@suse.de>2020-05-29 15:27:50 +0200
commit7cc31613734c4870ae32f5265d576ef296621343 (patch)
treec31d4380cd1288528d51702675b51cc657b24797 /arch
parentx86: Hide the archdata.iommu field behind generic IOMMU_API (diff)
downloadlinux-7cc31613734c4870ae32f5265d576ef296621343.tar.xz
linux-7cc31613734c4870ae32f5265d576ef296621343.zip
iommu: Fix reference count leak in iommu_group_alloc.
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions