Re: [PATCH v3] iio: core: Prevent invalid memory access when there is no parent

From: Jonathan Cameron
Date: Sat Jul 22 2023 - 12:53:39 EST


On Wed, 19 Jul 2023 18:27:45 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> On Wed, Jul 19, 2023 at 10:32:08AM +0200, Milan Zamazal wrote:
>
> > Changes in v3:
> > - The call trace in the commit message reduced to the minimum lines
> > needed to explain the problem.
>
> Precisely, that deserves my tag which I already had given :-)
> Thank you!
>
Applied to the fixes-togreg branch of iio.git.

In theory every device should have a parent, but this fix is more
minimal than adding one for the dummy device (which we should still do
- even if it's a virtual device of some type that we create just for this
purpose).

That reminds me, I was in process of fixing this for perf drivers and
forgot to finish it off :)

Jonathan