Files
Antoniu MiclausandJonathan Cameron 5aba4f94b2 iio: chemical: scd30: fix division by zero in write_raw
Add a zero check for val2 before using it as a divisor when setting the
sampling frequency. A user writing a zero fractional part to the
sampling_frequency sysfs attribute triggers a division by zero in the
kernel.

Fixes: 64b3d8b1b0 ("iio: chemical: scd30: add core driver")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2026-04-28 16:36:09 +01:00
..
2025-04-22 19:10:04 +01:00
2026-03-22 12:20:42 +00:00
2025-05-21 14:22:32 +01:00
2025-05-21 14:22:32 +01:00