mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 09:36:11 +07:00
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
@ -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…
Reference in New Issue
Block a user