[PATCH 0/3] mtd: rawnand: Fix some Smatch reports

Andrew Goodbody andrew.goodbody at linaro.org
Fri Aug 1 12:39:12 CEST 2025


Smatch reported some errors with memory being leaked on error paths and
also error paths lacking an error code to be returned.

Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Andrew Goodbody (3):
      mtd: nand: pxa3xx: Free memory on error
      mtd: rawnand: stm32_fmc2: Ensure to return error code
      mtd: nand: sunxi: Free allocated memory on errors

 drivers/mtd/nand/raw/pxa3xx_nand.c     |  1 +
 drivers/mtd/nand/raw/stm32_fmc2_nand.c |  6 +++---
 drivers/mtd/nand/raw/sunxi_nand.c      | 17 +++++++++++++++--
 3 files changed, 19 insertions(+), 5 deletions(-)
---
base-commit: f5e968a28e7cdc2c4365f5a382e02f074ee03fac
change-id: 20250801-mtd_nand_raw2-739308283b18

Best regards,
-- 
Andrew Goodbody <andrew.goodbody at linaro.org>



More information about the U-Boot mailing list