Skip to content
Commit 82ebbe65 authored by Manank Patel's avatar Manank Patel Committed by Wim Van Sebroeck
Browse files

drivers: watchdog: exar_wdt.c fix use after free



fix use after free by storing the result of PTR_ERR(n->pdev)
to a local variable before returning.

Signed-off-by: default avatarManank Patel <pmanank200502@gmail.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221013095258.1424967-1-pmanank200502@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 097a4a16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment