Loading
watchdog: intel_oc_wdt: Do not try to write into const memory
The code tries to update the intel_oc_wdt_info data structure if the watchdog is locked. That data structure is marked as const and can not be written into. Copy it into struct intel_oc_wdt and modify it there to fix the problem. Reported-by:Petar Kulić <cooleech@gmail.com> Cc: Diogo Ivo <diogo.ivo@siemens.com> Fixes: 535d1784 ("watchdog: Add driver for Intel OC WDT") Signed-off-by:
Guenter Roeck <linux@roeck-us.net> Reviewed-by:
Diogo Ivo <diogo.ivo@siemens.com> Tested-by:
Diogo Ivo <diogo.ivo@siemens.com> Link: https://lore.kernel.org/linux-watchdog/20250818031838.3359-1-diogo.ivo@tecnico.ulisboa.pt/T/#t Signed-off-by:
Wim Van Sebroeck <wim@linux-watchdog.org>