diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-28 08:35:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-28 08:38:05 +0200 |
commit | 44b4a1ce38f08a5bf350ba1dd527e8ae9cb3ca05 (patch) | |
tree | 390ab9d66ef47cd20c47db830aa434dfd9134ac6 /fs/ubifs/super.c | |
parent | 31cc20b53ce4b319e6e3523b54d6953be6ca49c0 (diff) | |
download | barebox-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>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 1 |
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; } |