From 44b4a1ce38f08a5bf350ba1dd527e8ae9cb3ca05 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 28 Sep 2018 08:35:38 +0200 Subject: 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 --- fs/ubifs/super.c | 1 - 1 file changed, 1 deletion(-) (limited to 'fs/ubifs/super.c') 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; } -- cgit v1.2.3