Re: [PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread Anton Moryakov
I can then leave only + if (!dev) { + ret = -ENODEV; + goto err; + } + but make it higher How do you like this option? пт, 16 мая 2025 г. в 19:20, Simon Glass : > Hi, > > On Fri, 16 May 2025 at 14:51, wrote: > > > > From: Anton Moryakov > > > > The stati

Re: [PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread Simon Glass
Hi, On Fri, 16 May 2025 at 14:51, wrote: > > From: Anton Moryakov > > The static analyzer (Svace) reported > After having been compared to a NULL value at spi-uclass.c:465, > pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags' > at spi-uclass.c:469, where it is dereferen

Re: [PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread Tom Rini
On Fri, May 16, 2025 at 03:50:53PM +0300, ant.v.morya...@gmail.com wrote: > From: Anton Moryakov > > The static analyzer (Svace) reported > After having been compared to a NULL value at spi-uclass.c:465, > pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags' > at spi-ucl

[PATCH] drivers: spi: fix deref ater null.might in spi-uclass.c

2025-05-16 Thread ant . v . moryakov
From: Anton Moryakov The static analyzer (Svace) reported After having been compared to a NULL value at spi-uclass.c:465, pointer 'dev' is passed as 1st parameter in call to function 'dev_get_flags' at spi-uclass.c:469, where it is dereferenced at device.h:240. Correct explained: 1. Added dev