Re: [PATCH v2] platform/x86: simatic-ipc: fix platform device leak on registration failure
From: Ilpo Järvinen
Date: Thu Oct 08 2026 - 13:39:33 EST
On Thu, 24 Sep 2026 19:56:17 +0800, Guangshuo Li wrote:
> register_platform_devices() registers the battery, LED, and watchdog
> platform devices in sequence. If LED registration fails, the battery
> device remains registered. If watchdog registration fails, the LED and
> battery devices remain registered.
>
> These failure paths leave successful platform_device_register_data()
> calls without the matching platform_device_unregister() calls.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.
The list of commits applied:
[1/1] platform/x86: simatic-ipc: fix platform device leak on registration failure
commit: 84aa6bb468d27c2bf3694c30914ebecb6ebc97a4
--
i.