]> Gentwo Git Trees - linux/.git/commit
watchdog: intel_oc_wdt: Do not try to write into const memory
authorGuenter Roeck <linux@roeck-us.net>
Sun, 17 Aug 2025 14:48:17 +0000 (07:48 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Fri, 12 Sep 2025 16:06:28 +0000 (18:06 +0200)
commitbdbb4a2d2aeae3d115bbdc402adac72aec071492
treed49c203e00ed67f7379ef5737f62f0a38ff3b10d
parentf777d1112ee597d7f7dd3ca232220873a34ad0c8
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: 535d1784d8a9 ("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>
drivers/watchdog/intel_oc_wdt.c