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 Thu, Jul 16, 2026 at 01:14:18PM +0100, Rodrigo Alencar via B4 Relay wrote: > Verify that chip_info pointer is not NULL. If a user binds the driver > using driver_override via sysfs with a device name not present in the > id_table or of_match_table, match data will be NULL. ... > struct iio_dev *indio_dev; > int ret, i; Move an assignment here as well. chip_info = ... > + if (!chip_info) > + return -ENODEV; -- With Best Regards, Andy Shevchenko