diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-20 16:43:44 +0100 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-01-26 16:38:04 +0200 |
| commit | 43b0b7eff4b3fb684f257d5a24376782e9663465 (patch) | |
| tree | d3d3f81db517ce3f4ec60086ec92b4eee1af25ef /kernel/debug | |
| parent | 4b11f2336e23d5c55b76591bd8ac39b059f68ad0 (diff) | |
platform/x86: panasonic-laptop: Fix sysfs group leak in error path
The acpi_pcc_hotkey_add() error path leaks sysfs group pcc_attr_group
if platform_device_register_simple() fails for the "panasonic" platform
device.
Address this by making it call sysfs_remove_group() in that case for
the group in question.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3398370.44csPzL39Z@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
