Re: [PATCH] spi - Fix possible NULL derefrence.

2017-01-30 Thread Mark Brown
On Mon, Jan 30, 2017 at 11:00:28AM +0100, Geert Uytterhoeven wrote: > On Mon, Jan 30, 2017 at 5:55 AM, Shailendra Verma > wrote: > > of_match_device could return NULL, and so can cause a NULL > > pointer dereference later. > Can it? The driver uses DT exclusively. > There is no legacy platform co

Re: [PATCH] spi - Fix possible NULL derefrence.

2017-01-30 Thread Geert Uytterhoeven
Hi Shailendra, On Mon, Jan 30, 2017 at 5:55 AM, Shailendra Verma wrote: > of_match_device could return NULL, and so can cause a NULL > pointer dereference later. Can it? The driver uses DT exclusively. There is no legacy platform code creating "mxs-spi" platform devices. > Signed-off-by: Shaile

[PATCH] spi - Fix possible NULL derefrence.

2017-01-29 Thread Shailendra Verma
of_match_device could return NULL, and so can cause a NULL pointer dereference later. Signed-off-by: Shailendra Verma --- drivers/spi/spi-mxs.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 5b0e9a3..c3aea7e 100644 --- a/drivers/sp