Re: iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe()

From: Greg KH
Date: Sat Jun 08 2024 - 07:39:34 EST


On Wed, Jun 05, 2024 at 05:51:23PM +0300, Ivan T. Ivanov wrote:
> Hi,
>
> I could we drop this CVE?
>
> of_match_device() can not return NULL in this case.
>
> Even commit message agree on this:
>
> " ... In practice there is no known reasonable way to trigger this, but
> in case one is added in future, harden the code by adding the check ..."

Ugh, our fault, sorry about that, now rejected.

Thanks again for the review!

greg k-h