Re: [PATCH v1] iio: adc: ad7192: store indio_dev into spi driver data

From: andy . shevchenko
Date: Mon Jun 12 2023 - 06:53:17 EST


Mon, Jun 12, 2023 at 10:08:47AM +0200, Markus Burri kirjoitti:
> After calibration the indio_dev is used to get channel information.
> Since the pointer is not stored into spi driver data, there is a kernel
> null pointer dereference.
> Store the indio_dev into spi driver data to fix this.

This definitely deserves the Fixes tag. Can you dig the history to find the
culprit one?

> Add error check and slightly extend the debug messages.

I'm not sure this will belong to the same change, so I would split this out to
a separate one.

--
With Best Regards,
Andy Shevchenko