Re: [PATCH v2 1/9] watchdog: msc313e: Fix NULL pointer dereference in PM callbacks
From: Guenter Roeck
Date: Wed Sep 09 2026 - 17:14:50 EST
On Sat, Aug 29, 2026 at 12:13:40AM +0800, Tzung-Bi Shih wrote:
> msc313e_wdt_probe() doesn't set the driver data for the platform device.
> As a result, dev_get_drvdata() in msc313e_wdt_suspend() and
> msc313e_wdt_resume() will return NULL, leading to a NULL pointer
> dereference afterward.
>
> Set the platform device driver data in msc313e_wdt_probe().
>
> Fixes: e9800b799464 ("watchdog: Add Mstar MSC313e WDT driver")
> Signed-off-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>
Applied.
Thanks,
Guenter