mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
udf: fix nls leak on udf_fill_super() failure
On all failure exits that go to error_out there we have already moved the
nls reference from uopt->nls_map to sbi->s_nls_map, leaving NULL behind.
Fixes: c4e89cc674 ("udf: convert to new mount API")
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
2005aabe94
commit
462bdd08fb
|
|
@ -2320,7 +2320,7 @@ static int udf_fill_super(struct super_block *sb, struct fs_context *fc)
|
|||
|
||||
error_out:
|
||||
iput(sbi->s_vat_inode);
|
||||
unload_nls(uopt->nls_map);
|
||||
unload_nls(sbi->s_nls_map);
|
||||
if (lvid_open)
|
||||
udf_close_lvid(sb);
|
||||
brelse(sbi->s_lvid_bh);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user