mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fs: ubifs: Do not free memory not allocated by ubifs
@ 2018-09-28  6:37 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2018-09-28  6:37 UTC (permalink / raw)
  To: Barebox List

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>
---
 fs/ubifs/super.c | 1 -
 1 file changed, 1 deletion(-)

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;
 }
-- 
2.19.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-28  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28  6:37 [PATCH] fs: ubifs: Do not free memory not allocated by ubifs Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox