summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2026-09-13 14:48:49 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-09-16 17:38:52 -0700
commit400cb663ca019bae6eb878f06f1094ddf7c0b0df (patch)
tree37ec8571ddb7a783febe391a053ab12655a7dbe8 /tools/perf/scripts/python
parent88f113634028ca90a857031837d8061d1a9e1a7b (diff)
downloadlinux-next-400cb663ca019bae6eb878f06f1094ddf7c0b0df.tar.gz
linux-next-400cb663ca019bae6eb878f06f1094ddf7c0b0df.zip
watchdog: digicolor: Avoid division by zero
clk_get_rate() could return 0. Avoid a division by zero panic. Since get_timeleft() cannot propagate errors, check the clock rate early in probe() and cache the rate in the driver data as it is unlikely to change at runtime. Fixes: 336694a01dae ("watchdog: digicolor: driver for Conexant Digicolor CX92755 SoC") Cc: stable@vger.kernel.org Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Acked-by: Baruch Siach <baruch@tkos.co.il> Link: https://patch.msgid.link/20260913064851.8239-2-tzungbi@kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions