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
.gitignore -rw-r--r-- 62 bytes
Kconfig -rw-r--r-- 3.4 KB
Makefile -rw-r--r-- 4.1 KB
blacklist.c -rw-r--r-- 4.0 KB
blacklist.h -rw-r--r-- 84 bytes
blacklist_hashes.c -rw-r--r-- 166 bytes
blacklist_nohashes.c -rw-r--r-- 122 bytes
system_certificates.S -rw-r--r-- 828 bytes
system_keyring.c -rw-r--r-- 8.7 KB

back to top