fs: ubifs: Need to check return for being an error pointer
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 3 Oct 2025 10:42:51 +0000 (11:42 +0100)
committerHeiko Schocher <hs@nabladev.com>
Wed, 8 Oct 2025 09:36:00 +0000 (11:36 +0200)
commit51615eb4f7bcd3367aecdeaea3638058ef5407f3
tree756b65824f8562716f111079a4ca6a4bafe3df1a
parentd23ddd5dee570e625e0fd76bba1e155f4cc1248c
fs: ubifs: Need to check return for being an error pointer

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@linaro.org>
fs/ubifs/super.c