[PATCH] mtd: nand: Prevent dereference of NULL pointer

Tom Rini trini at konsulko.com
Wed Oct 29 00:57:28 CET 2025


On Tue, 01 Jul 2025 17:12:44 +0100, Andrew Goodbody wrote:

> In nand_wait_ready there is a loop that includes a NULL check for
> chip->dev_ready before it is dereferenced. Use a NULL check once the
> loop is exited as well to cover the case where it exits due to a timeout
> and it is therefore not known if chip->dev_ready is NULL or not.
> 
> This issue found by Smatch.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] mtd: nand: Prevent dereference of NULL pointer
      commit: a5c83da3ccb372133fdbe43e0a8e65e06b3291e8
-- 
Tom




More information about the U-Boot mailing list