[PATCH 5/7] imx-bbu-nand-fcb: avoid double free of dbbt_entries
Lucas Stach
dev at lynxeye.de
Wed Jul 6 11:44:38 PDT 2016
The error path properly frees them already.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
common/imx-bbu-nand-fcb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c
index ce00ed4..1db4c5a 100644
--- a/common/imx-bbu-nand-fcb.c
+++ b/common/imx-bbu-nand-fcb.c
@@ -658,7 +658,6 @@ static int dbbt_check(struct mtd_info *mtd, int page)
needs_cleanup = 1;
} else if (ret < 0) {
pr_err("Cannot read page %d: %s\n", page, strerror(-ret));
- free(dbbt_entries);
goto out;
}
} else {
--
2.7.4
More information about the barebox
mailing list