diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-08-29 00:13:45 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-09 14:17:40 -0700 |
| commit | ab390021b2a3bb4cc875f28a6f76d13de90d7457 (patch) | |
| tree | f221001d97dba410de604ace3e53af531f48553b /scripts/basic/split-include.c | |
| parent | 4f6817c9eff4aa1078e16652d82e4b7ef4ffae3e (diff) | |
| download | linux-ab390021b2a3bb4cc875f28a6f76d13de90d7457.tar.gz linux-ab390021b2a3bb4cc875f28a6f76d13de90d7457.zip | |
watchdog: msc313e: Fix undefined behavior
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@kernel.org>
Link: https://patch.msgid.link/20260828161348.13212-7-tzungbi@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
