summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2016-07-06 20:44:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-07 09:36:31 +0200
commitaab6861314ec2c7d3f0b2a735a0e1528c7a47649 (patch)
tree56c837282fc0dadf4e13c94aceb3ea27166ca8f1 /common
parentff06cdf26d6983ba147570d4811ba732feeebd9d (diff)
downloadbarebox-aab6861314ec2c7d3f0b2a735a0e1528c7a47649.tar.gz
barebox-aab6861314ec2c7d3f0b2a735a0e1528c7a47649.tar.xz
imx-bbu-nand-fcb: avoid double free of dbbt_entries
The error path properly frees them already. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/imx-bbu-nand-fcb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c
index ce00ed4fc0..1db4c5acbd 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 {