[PATCH 3/3] fs: ubifs: Fix and rework error handling in ubifs_finddir

Heiko Schocher hs at nabladev.com
Thu Oct 9 06:15:07 CEST 2025


Hello Andrew,

On 03.10.25 12:42, Andrew Goodbody wrote:
> Add a null check for 'file' before dereferencing it and also rework the
> error handling to be a bit more sane.
> 
> This issue was found by Smatch.
> 
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
> ---
>   fs/ubifs/ubifs.c | 16 ++++++++--------
>   1 file changed, 8 insertions(+), 8 deletions(-)

Applied to u-boot-ubi

Thanks!

bye,
Heiko
-- 
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: office at nabladev.com
Geschäftsführer : Stefano Babic


More information about the U-Boot mailing list