lkml.org 
[lkml]   [2022]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2 0/5] iio: treewide: rearrange iio trig get/register
Date
Jonathan,

On Sat, May 28, 2022 at 06:10:04PM +0100, Jonathan Cameron wrote:
> > If this call order is wrong, the next iio_trigger_put() (from sysfs
> > callback or "delete module" path) will dereference "default" module
> > refcnt, which is incorrect behaviour.
>
> Hi Dmitry,
>
> Series applied to the fixes-togreg branch of iio.git and marked for stable.
>

Thank you!

> Do you think it's also worth adding a runtime warning in iio_trigger_get()
> on !trig->owner so that we catch any cases of this introduced in the future?
>

Good point, it will help other kernel developers to avoid such mistake.
I'll prepare new patchset with that.

--
Thank you,
Dmitry
\
 
 \ /
  Last update: 2022-05-30 17:54    [W:0.129 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site