linux/drivers/platform
Rong Zhang 2fe2504abc
platform/x86: lenovo-wmi-other: Balance component bind and unbind
When lwmi_om_master_bind() fails, the master device's components are
left bound, with the aggregate device destroyed due to the failure
(found by sashiko.dev [1]).

Balance calls to component_bind_all() and component_unbind_all() when an
error is propagated to the component framework.

No functional change intended.

Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fixes: edc4b183b7 ("platform/x86: Add Lenovo Other Mode WMI Driver")
Cc: stable@vger.kernel.org
Link: https://sashiko.dev/#/patchset/20260331181208.421552-1-derekjohn.clark%40gmail.com [1]
Signed-off-by: Rong Zhang <i@rong.moe>
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Link: https://patch.msgid.link/20260510042546.436874-4-derekjohn.clark@gmail.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-05-11 14:29:02 +03:00
..
arm64 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
chrome platform/chrome: cros_usbpd_logger: Simplify with devm 2026-03-20 02:57:04 +00:00
cznic treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
goldfish Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
loongarch platform/loongarch: laptop: Unregister generic_sub_drivers on exit 2025-06-07 11:37:15 +08:00
mellanox platform/mellanox: nvsw-sn2201: Drop unused include 2026-03-23 11:55:32 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-06-21 10:22:10 +02:00
olpc platform/olpc: olpc-xo175-ec: Fix overflow error message to print inlen 2026-03-23 14:49:00 +02:00
raspberrypi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
surface platform/surface: hotplug: Correct inclusion for GPIO APIs 2026-03-23 11:55:09 +02:00
wmi platform/wmi: Fix unchecked min_size in wmidev_invoke_method() 2026-04-30 15:33:32 +03:00
x86 platform/x86: lenovo-wmi-other: Balance component bind and unbind 2026-05-11 14:29:02 +03:00
Kconfig platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00
Makefile platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00