diff options
-rw-r--r-- | fs/devpts/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 073d30b9d1ac..a726b9f29cb7 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -498,6 +498,7 @@ static void devpts_kill_sb(struct super_block *sb) | |||
498 | { | 498 | { |
499 | struct pts_fs_info *fsi = DEVPTS_SB(sb); | 499 | struct pts_fs_info *fsi = DEVPTS_SB(sb); |
500 | 500 | ||
501 | ida_destroy(&fsi->allocated_ptys); | ||
501 | kfree(fsi); | 502 | kfree(fsi); |
502 | kill_litter_super(sb); | 503 | kill_litter_super(sb); |
503 | } | 504 | } |