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
File Mode Size
Documentation
arch
.gitignore -rw-r--r-- 82 bytes
Build -rw-r--r-- 744 bytes
Makefile -rw-r--r-- 1.9 KB
arch.h -rw-r--r-- 1.3 KB
builtin-check.c -rw-r--r-- 1.5 KB
builtin-orc.c -rw-r--r-- 1.1 KB
builtin.h -rw-r--r-- 439 bytes
cfi.h -rw-r--r-- 786 bytes
check.c -rw-r--r-- 60.8 KB
check.h -rw-r--r-- 1.7 KB
elf.c -rw-r--r-- 16.6 KB
elf.h -rw-r--r-- 3.5 KB
objtool.c -rw-r--r-- 2.4 KB
orc.h -rw-r--r-- 348 bytes
orc_dump.c -rw-r--r-- 4.0 KB
orc_gen.c -rw-r--r-- 4.8 KB
special.c -rw-r--r-- 4.5 KB
special.h -rw-r--r-- 551 bytes
sync-check.sh -rwxr-xr-x 1.1 KB
warn.h -rw-r--r-- 1.3 KB

back to top