mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-08 10:30:50 +00:00
devpts: Make devpts_kill_sb safe if fsi is NULL
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
ec0a9ba6f2
commit
0d126a7ff7
@ -458,7 +458,8 @@ static void devpts_kill_sb(struct super_block *sb)
|
|||||||
{
|
{
|
||||||
struct pts_fs_info *fsi = DEVPTS_SB(sb);
|
struct pts_fs_info *fsi = DEVPTS_SB(sb);
|
||||||
|
|
||||||
ida_destroy(&fsi->allocated_ptys);
|
if (fsi)
|
||||||
|
ida_destroy(&fsi->allocated_ptys);
|
||||||
kfree(fsi);
|
kfree(fsi);
|
||||||
kill_litter_super(sb);
|
kill_litter_super(sb);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user