Re: [PATCH v8 2/8] iio: dac: ad5686: missing NULL check on match data

Andy Shevchenko <[email protected]>
Newsgroups org.kernel.vger.linux-hardening,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Sun, Jul 19, 2026 at 12:55:44AM +0100, Jonathan Cameron wrote:
> On Fri, 17 Jul 2026 13:28:52 +0300
> Andy Shevchenko <[email protected]> wrote:

...

> I applied the following rather than going for a v9 for just this:

Thanks!

> Shout if I messed it up.

...

> +       if (!chip_info)
> +               return -ENODEV;

Perhaps stick with -ENODATA? (Maybe in a separate change, dunno...)

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.