Re: [PATCH 3/3] iio: frequency: ad9834: add mutex_lock() when reading st->control
From: Joshua Crofts
Date: Tue Apr 14 2026 - 05:45:57 EST
On Tue, 14 Apr 2026 at 11:36, Dan Carpenter <error27@xxxxxxxxx> wrote:
> This doesn't matter in real life. "Oops, the root user tried
> really hard to do something stupid and got "square" as the output
> a fraction of a milisecond longer than they were supposed to."
>
> Is there a tool which detects and complains about this?
No, no tool complained about it, I honestly just thought it's best practice to
add a mutex_lock() given that st->control is "volatile".
--
Kind regards
CJD