diff options
| author | Henry Martin <[email protected]> | 2025-04-24 07:16:48 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2025-06-01 11:16:07 +0000 |
| commit | a4e2401438a26131ecff9be6a3a1d4cbfea66f9a (patch) | |
| tree | 7eba7d1abf30f5e428b343d651e962afaa3dac05 /scripts/gcc-plugins/gcc-common.h | |
| parent | watchdog: s3c2410_wdt: Add exynos990-wdt compatible data (diff) | |
| download | kernel-a4e2401438a26131ecff9be6a3a1d4cbfea66f9a.tar.gz kernel-a4e2401438a26131ecff9be6a3a1d4cbfea66f9a.zip | |
watchdog: lenovo_se30_wdt: Fix possible devm_ioremap() NULL pointer dereference in lenovo_se30_wdt_probe()
devm_ioremap() returns NULL on error. Currently, lenovo_se30_wdt_probe()
does not check for this case, which results in a NULL pointer
dereference.
Add NULL check after devm_ioremap() to prevent this issue.
Fixes: c284153a2c55 ("watchdog: lenovo_se30_wdt: Watchdog driver for Lenovo SE30 platform")
Signed-off-by: Henry Martin <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
