parisc: Check for valid stride size for cache flushes
authorHelge Deller <deller@gmx.de>
Wed, 17 Jan 2024 16:46:43 +0000 (17:46 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 28 Jan 2024 08:49:46 +0000 (09:49 +0100)
commitb9402e3b97289ca9e0f0f79f4df64bd6c9176a86
tree68cb7031eb4abd058f99873982b14fb5f592fe29
parent2751153b9945c31eb905deb9fbe2d7f127b4b34c
parisc: Check for valid stride size for cache flushes

Report if the calculated cache stride size is zero, otherwise the cache
flushing routine will never finish and hang the machine.
This can be reproduced with a testcase in qemu, where the firmware reports
wrong cache values.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/cache.c