Commit 70d9e384 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Bob Copeland

omfs: fix memory leak

In the error path of omfs_fill_super(), the FS super block info
(sbi) is not being freed.  Correct this.
Signed-off-by: default avatarDavidlohr Bueso <dave@gnu.org>
Signed-off-by: default avatarBob Copeland <me@bobcopeland.com>
parent 815c4163
......@@ -529,6 +529,8 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
out_brelse_bh:
brelse(bh);
end:
if (ret)
kfree(sbi);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment