diff options
author | Qiushi Wu <wu000273@umn.edu> | 2020-05-27 16:17:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-20 10:25:00 +0200 |
commit | 8641abcf0963ecb3b649e31e46cf2c6610c3493a (patch) | |
tree | a8f77efb8f71b6877d5ba8bcd66b6b3106e9e324 /drivers/acpi/cppc_acpi.c | |
parent | d60becbea1880c155e37f72c0661e22591825659 (diff) | |
download | linux-rt-8641abcf0963ecb3b649e31e46cf2c6610c3493a.tar.gz |
ACPI: sysfs: Fix reference count leak in acpi_sysfs_add_hotplug_profile()
commit 6e6c25283dff866308c87b49434c7dbad4774cc0 upstream.
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: 3f8055c35836 ("ACPI / hotplug: Introduce user space interface for hotplug profiles")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Cc: 3.10+ <stable@vger.kernel.org> # 3.10+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions