Re: [PATCH] watchdog: lenovo_se10_wdt: Fix use-after-free and resource leak risk
From: Mark Pearson
Date: Tue May 05 2026 - 09:41:00 EST
On Tue, May 5, 2026, at 9:15 AM, Guenter Roeck wrote:
> On Mon, May 04, 2026 at 02:01:42PM -0400, Mark Pearson wrote:
>> Review by sashiko.dev highlighted potential use after free and resource
>> leak instances.
>>
>> Set se10_pdev to null to prevent use after free
>>
>> Remove DMI call back and instead directly call
>> se10_create_platform_device. Handle error cases appropriately
>>
>> Link: https://sashiko.dev/#/patchset/20260428124954.1193450-1-mpearson-lenovo%40squebb.ca
>>
>> Signed-off-by: Mark Pearson <mpearson-lenovo@xxxxxxxxx>
>
> Applied to my watchdog-next branch.
>
> Thanks,
> Guenter
Thanks for the review
Mark