[PATCH] fs: erofs: Do NULL check before dereferencing pointer

Tom Rini trini at konsulko.com
Sat Jul 12 06:00:48 AEST 2025


On Fri, 04 Jul 2025 11:53:18 +0100, Andrew Goodbody wrote:

> The assignments to sect and off use the pointer from ctxt.cur_dev but
> that has not been NULL checked before this is done. So instead move the
> assignments after the NULL check.
> 
> This issue found by Smatch
> 
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] fs: erofs: Do NULL check before dereferencing pointer
      commit: ff8a41ce4947c6d7f1826990d5d7b96d30928e3f
-- 
Tom




More information about the Linux-erofs mailing list