diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-04 11:53:18 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-07-11 11:33:25 -0600 |
commit | ff8a41ce4947c6d7f1826990d5d7b96d30928e3f (patch) | |
tree | 5d232785f9e9c91752a45d94bfddf94e4a00ae0b /lib/efi_loader/helloworld.c | |
parent | a21ec39944f93fb5bd3dd5de525e78cac988fdb6 (diff) |
fs: erofs: Do NULL check before dereferencing pointer
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
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Gao Xiang <xiang@kernel.org>
Diffstat (limited to 'lib/efi_loader/helloworld.c')
0 files changed, 0 insertions, 0 deletions