linux-stable/drivers/cpuidle
Qiushi Wu b98c3badfa cpuidle: Fix three reference count leaks
[ Upstream commit c343bf1ba5 ]

kobject_init_and_add() takes reference even when it fails.
If this function returns an error, kobject_put() must be called to
properly clean up the memory associated with the object.

Previous commit "b8eb718348b8" fixed a similar problem.

Signed-off-by: Qiushi Wu <wu000273@umn.edu>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-20 10:25:14 +02:00
..
governors cpuidle: Eliminate the CPUIDLE_DRIVER_STATE_START symbol 2017-08-30 03:05:29 +02:00
coupled.c smp: Avoid using two cache lines for struct call_single_data 2017-08-29 15:14:38 +02:00
cpuidle-arm.c ARM: cpuidle: Correct driver unregistration if init fails 2017-12-10 13:40:41 +01:00
cpuidle-at91.c
cpuidle-big_little.c cpuidle: big.LITTLE: fix refcount leak 2019-02-12 19:46:03 +01:00
cpuidle-calxeda.c
cpuidle-clps711x.c drivers/cpuidle: make cpuidle-clps711x.c explicitly non-modular 2015-12-15 00:22:21 +01:00
cpuidle-cps.c Update MIPS email addresses 2017-11-03 09:02:30 -07:00
cpuidle-exynos.c drivers/cpuidle: make cpuidle-exynos.c explicitly non-modular 2015-12-15 00:22:22 +01:00
cpuidle-kirkwood.c
cpuidle-mvebu-v7.c
cpuidle-powernv.c cpuidle: powernv: Fix promotion from snooze if next state disabled 2018-07-03 11:24:51 +02:00
cpuidle-pseries.c powerpc/pseries/cpuidle: Fix preempt warning 2019-01-26 09:37:02 +01:00
cpuidle-ux500.c drivers/cpuidle: make cpuidle-ux500.c explicitly non-modular 2015-12-15 00:22:22 +01:00
cpuidle-zynq.c
cpuidle.c cpuidle: fix broadcast control when broadcast can not be entered 2017-12-25 14:26:30 +01:00
cpuidle.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
driver.c cpuidle: Do not unset the driver if it is there already 2019-12-17 20:39:33 +01:00
dt_idle_states.c Merge branch 'pm-sleep' 2017-09-04 00:06:02 +02:00
dt_idle_states.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
governor.c cpuidle: governors: Remove remaining old module code 2016-10-21 14:49:51 +02:00
Kconfig cpuidle: Don't enable all governors by default 2016-01-15 22:39:58 +01:00
Kconfig.arm ARM: cpuidle: Support asymmetric idle definition 2017-06-24 01:51:00 +02:00
Kconfig.mips cpuidle: cpuidle-cps: Enable use with MIPSr6 CPUs. 2016-10-04 16:13:57 +02:00
Kconfig.powerpc
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
poll_state.c cpuidle: Make drivers initialize polling state 2017-08-30 03:06:33 +02:00
sysfs.c cpuidle: Fix three reference count leaks 2020-06-20 10:25:14 +02:00