mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
devpts: Make devpts_kill_sb safe if fsi is NULL
Signed-off-by: "Eric W. Biederman" <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c1b241f0c1
commit
40b320e1c7
1 changed files with 2 additions and 1 deletions
|
|
@ -458,7 +458,8 @@ static void devpts_kill_sb(struct super_block *sb)
|
|||
{
|
||||
struct pts_fs_info *fsi = DEVPTS_SB(sb);
|
||||
|
||||
ida_destroy(&fsi->allocated_ptys);
|
||||
if (fsi)
|
||||
ida_destroy(&fsi->allocated_ptys);
|
||||
kfree(fsi);
|
||||
kill_litter_super(sb);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue