mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
The code in occ_get_powr_avg() invokes div64_u64() without checking the
divisor. In case the divisor is zero, kernel gets an "Division by zero
in kernel" error.
Check the divisor and make it return 0 if the divisor is 0.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| common.c | ||
| common.h | ||
| Kconfig | ||
| Makefile | ||
| p8_i2c.c | ||
| p9_sbe.c | ||
| sysfs.c | ||