On Fri, Nov 4, 2022 at 11:05 AM Peng Wu <wupeng58@xxxxxxxxxx> wrote: > > In the success path of iio_device_claim_buffer_mode(), mutex_unlock() > should be called before return. Please, understand how the code works. NAK. Nuno, perhaps we need to put a comment inside the function to explain this? -- With Best Regards, Andy Shevchenko