diff options
| author | Qiushi Wu <wu000273@umn.edu> | 2020-05-28 13:20:46 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-20 10:23:22 +0200 |
| commit | f79e5b53115c1753cca7b8a0a6da16342f3689af (patch) | |
| tree | 35f473506da574239afd582b24ac0549a0065fc5 /scripts/objdiff | |
| parent | 3bbb13a5b8927d158f90b0bd7145a7f98265a33c (diff) | |
cpuidle: Fix three reference count leaks
[ Upstream commit c343bf1ba5efcbf2266a1fe3baefec9cc82f867f ]
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>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
