]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: rawnand: stm32_fmc2: Ensure to return error code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 1 Aug 2025 10:39:14 +0000 (11:39 +0100)
committerMichael Trimarchi <michael@amarulasolutions.com>
Sun, 3 Aug 2025 08:20:16 +0000 (10:20 +0200)
commit4003ed1c1ecfc88092a1d3c65bf432ab7c2ea15f
treecf40e4f9ea68dd22e78a23cc7f9e3f55f92b968c
parent42ef9a0b7f26ccd7b657e9686a406ee83b8bd08d
mtd: rawnand: stm32_fmc2: Ensure to return error code

In stm32_fmc2_nfc_probe there are 3 error returns that do not set the
error code before returning which could lead to the error being silently
ignored. Just return -EINVAL in each case.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/mtd/nand/raw/stm32_fmc2_nand.c