[PATCH 2/3] fs: ubifs: Need to check return for being an error pointer
Heiko Schocher
hs at nabladev.com
Thu Oct 9 06:14:42 CEST 2025
Hello Andrew,
On 03.10.25 12:42, Andrew Goodbody wrote:
> The return value from alloc_super can be an error pointer so the error
> check needs to detect this as well as checking the pointer for being
> NULL.
>
> This issue was found by Smatch.
>
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
> ---
> fs/ubifs/super.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
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