aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorQiushi Wu <[email protected]>2020-05-27 21:00:19 +0000
committerJoerg Roedel <[email protected]>2020-05-29 13:27:50 +0000
commit7cc31613734c4870ae32f5265d576ef296621343 (patch)
treec31d4380cd1288528d51702675b51cc657b24797 /scripts/mod/file2alias.c
parentx86: Hide the archdata.iommu field behind generic IOMMU_API (diff)
downloadkernel-7cc31613734c4870ae32f5265d576ef296621343.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions