diff options
| author | Yasin Lee <yasin.lee.x@gmail.com> | 2026-02-13 23:14:44 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-19 16:15:31 +0100 |
| commit | 739fdfe65678d8e5dcf59496c56b32ab3ba3dbaa (patch) | |
| tree | 2b5b5eb801f26cce41d59891a6a8d4fdec132775 /scripts/diffconfig | |
| parent | 2c2661e1ed3c5c25677ceb7fb53471f742e75158 (diff) | |
iio: proximity: hx9023s: Protect against division by zero in set_samp_freq
commit a318cfc0853706f1d6ce682dba660bc455d674ef upstream.
Avoid division by zero when sampling frequency is unspecified.
Fixes: 60df548277b7 ("iio: proximity: Add driver support for TYHX's HX9023S capacitive proximity sensor")
Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions
