diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-03-31 13:13:00 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-04-28 16:36:09 +0100 |
| commit | 761e8b489e6cf166c574034b70637f8a7eadd0ee (patch) | |
| tree | fa6053fb2c11189ae7568d7d623c5be13055c474 /scripts/stackusage | |
| parent | 1a772719318c11e146f6fbe621fffd230a6f456a (diff) | |
iio: gyro: adis16260: fix division by zero in write_raw
Add a validation check for the sampling frequency value before using it
as a divisor. A user writing zero to the sampling_frequency sysfs
attribute triggers a division by zero in the kernel.
Fixes: 089a41985c6c ("staging: iio: adis16260 digital gyro driver")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
