Re: Potential NULL pointer deference in spi

From: Eric Dumazet
Date: Thu Oct 10 2019 - 01:48:42 EST




On 10/9/19 10:37 PM, Yizhuo Zhai wrote:
> Hi All:
>
> drivers/spi/spi.c:
>
> The function to_spi_device() could return NULL, but some callers
> in this file does not check the return value while directly dereference
> it, which seems potentially unsafe.
>
> Such callers include spidev_release(), spi_dev_check(),
> driver_override_store(), etc.
>
>


Many of your reports are completely bogus.

I suggest you spend more time before sending such emails to very large audience
and risk being ignored at some point.

Thanks.