Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d126a7f authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

devpts: Make devpts_kill_sb safe if fsi is NULL

parent ec0a9ba6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -458,6 +458,7 @@ static void devpts_kill_sb(struct super_block *sb)
{
	struct pts_fs_info *fsi = DEVPTS_SB(sb);

	if (fsi)
		ida_destroy(&fsi->allocated_ptys);
	kfree(fsi);
	kill_litter_super(sb);