aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorQiushi Wu <[email protected]>2020-05-27 21:17:17 +0000
committerRafael J. Wysocki <[email protected]>2020-05-28 11:45:34 +0000
commit6e6c25283dff866308c87b49434c7dbad4774cc0 (patch)
tree034da068ffc3d5ef77aac53e41fe7ee165ed390b /net/tipc/link.c
parentLinux 5.7-rc7 (diff)
downloadkernel-6e6c25283dff866308c87b49434c7dbad4774cc0.tar.gz
kernel-6e6c25283dff866308c87b49434c7dbad4774cc0.zip
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 <[email protected]> Cc: 3.10+ <[email protected]> # 3.10+ Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/tipc/link.c')
0 files changed, 0 insertions, 0 deletions