summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-09-28 08:35:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-09-28 08:38:31 +0200
commit55882cdd3aba18f088e663a16254e3ec3322421c (patch)
tree7b136e7e0f372b0ee944b6f56bf9d0b465ca177d
parent9ad58a925c679d0a50eff98ee0a4cdc1332d11e7 (diff)
downloadbarebox-55882cdd3aba18f088e663a16254e3ec3322421c.tar.gz
barebox-55882cdd3aba18f088e663a16254e3ec3322421c.tar.xz
fs: ubifs: Do not free memory not allocated by ubifs
Since the switch to dentry cache implementation we no longer allocate the super block, so we must not free it in the error path. Fixes: ("4d2b23bcf9 fs: ubifs: Switch to dentry cache implementation") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--fs/ubifs/super.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index abf8ef63c9..977c723442 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2590,6 +2590,5 @@ int ubifs_get_super(struct device_d *dev, struct ubi_volume_desc *ubi, int silen
return 0;
out:
kfree(c);
- kfree(sb);
return err;
}