Re: [PATCH 4/4] iio: magnetometer: rm3100: Use scoped_guard in rm3100_trigger_handler()
From: Maxwell Doose
Date: Tue Apr 28 2026 - 07:44:47 EST
On Tue, Apr 28, 2026 at 5:05 AM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxx> wrote:
>
> > + scoped_guard(mutex, &data->lock) {
>
> > + if (ret < 0)
> > + goto done;
>
>
> This is simply wrong.
>
Sorry, didn't realize goto was so blunt as to bypass
__attribute__((cleanup)), I rarely use it myself. I'll get that fixed
right away.
best regards
maxwell