Skip to contentSkip to conversation

fs: ubifs: Do not free memory not allocated by ubifs

PATCH New Sascha Hauer 1 participant 1 message Sep 28, 2018 UBI file system (UBIFS)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 fs/ubifs/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/ubifs/super.c +0 -1
index abf8ef63c9..977c723442 100644
@@ -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;
 }
Signature · 7 lines
2.19.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox