summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpi_platform.c
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-28 00:17:17 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-05-28 14:45:34 +0300
commit6e6c25283dff866308c87b49434c7dbad4774cc0 (patch)
tree034da068ffc3d5ef77aac53e41fe7ee165ed390b /drivers/acpi/acpi_platform.c
parent9cb1fd0efd195590b828b9b865421ad345a4a145 (diff)
downloadlinux-6e6c25283dff866308c87b49434c7dbad4774cc0.tar.xz
ACPI: sysfs: Fix reference count leak in acpi_sysfs_add_hotplug_profile()
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>
Diffstat (limited to 'drivers/acpi/acpi_platform.c')
0 files changed, 0 insertions, 0 deletions