On Mon, May 23, 2022 at 07:40:27PM +0200, Andy Shevchenko wrote: Hello Andy, Thank you for quick feedback. On Mon, May 23, 2022 at 07:40:27PM +0200, Andy Shevchenko wrote: > > If this call order is wrong, the next iio_trigger_put() (from sysfs > > callbacks or rmmod) will derefence "default" module refcnt, which is > > dereference Ah... good catch. > > completely incorrect. > > Cool set! But it sounds like a set of fixes, can you add a Fixes tag > to each of the patches? Sure, no problem, will provide Fixes tags in the next version. -- Thank you, Dmitry