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:05 +0200
commit44b4a1ce38f08a5bf350ba1dd527e8ae9cb3ca05 (patch)
tree390ab9d66ef47cd20c47db830aa434dfd9134ac6
parent31cc20b53ce4b319e6e3523b54d6953be6ca49c0 (diff)
downloadbarebox-44b4a1ce38f08a5bf350ba1dd527e8ae9cb3ca05.tar.gz
barebox-44b4a1ce38f08a5bf350ba1dd527e8ae9cb3ca05.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;
}