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: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Bob Copeland <me@bobcopeland.com>
This commit is contained in:
parent
815c4163b6
commit
70d9e384aa
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue