diff options
| author | Antonio Borneo <antonio.borneo@foss.st.com> | 2026-11-16 14:24:02 +0100 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-16 06:39:26 -0800 |
| commit | 25c38ab9e6b69cfdc13aeff19470f7d0893b1702 (patch) | |
| tree | 39715250e3ae9f5b5a7997933f1421d7b493629e /rust/kernel/alloc | |
| parent | 4e83ea5b22193fd0db8bcee5682935f1d528705e (diff) | |
watchdog: stm32_iwdg: set driver data before requesting interrupt
The interrupt handler accesses the driver data, which is currently
set after devm_request_irq() returns.
If the watchdog was started by the bootloader and a pretimeout
interrupt is pending, the handler can run before the driver data
is set, resulting in a NULL pointer dereference.
Move the IRQ request after setting the driver data to ensure it
is available when the interrupt handler runs.
Fixes: 3ab1663af6c1 ("watchdog: stm32_iwdg: Add pretimeout support")
Cc: stable@vger.kernel.org
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20261106163429.618392-1-antonio.borneo%40foss.st.com?part=3
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Link: https://patch.msgid.link/20261116132416.1184447-2-antonio.borneo@foss.st.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
