Re: [PATCH v2 6/9] watchdog: msc313e: Fix undefined behavior
From: Guenter Roeck
Date: Wed Sep 09 2026 - 17:37:31 EST
On Sat, Aug 29, 2026 at 12:13:45AM +0800, Tzung-Bi Shih wrote:
> readw() returns a u16. Left shifting a u16 by 16 bits yields undefined
> behavior.
>
> Cast to u32 explicitly before the shift.
>
> Fixes: ffd264bd152c ("watchdog: msc313e: Check if the WDT was running at boot")
> Signed-off-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>
Applied.
Thanks,
Guenter