Re: [PATCH 2/5] iio: proximity: hx9023s: Protect against division by zero in set_samp_freq
From: Yasin Lee
Date: Wed Feb 11 2026 - 01:57:45 EST
On Wed, Feb 11, 2026 at 1:34 AM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxx> wrote:
>
> On Wed, Feb 11, 2026 at 12:29:15AM +0800, Yasin Lee wrote:
> > On Mon, Feb 9, 2026 at 4:46 PM Andy Shevchenko
> > <andriy.shevchenko@xxxxxxxxx> wrote:
> > >
> > > On Mon, Feb 09, 2026 at 11:37:03AM +0800, Yasin Lee wrote:
> > > > Avoid division by zero when sampling frequency is unspecified by
> > > > falling back to a default 100ms sampling period.
> > >
> > > Fixes tag?
>
> > This is a proactive fix for an original implementation issue I found as
> > maintainer.
>
> Cool, any objections to use Fixes tag?
>
Hi Andy,
You're absolutely right. I understand now - adding a Fixes tag is the proper way
to document bug origins, even for proactively discovered issues.
I will add the Fixes tag in v2. Thanks for the correction!
> --
> With Best Regards,
> Andy Shevchenko
>
>