projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec0a9ba
)
devpts: Make devpts_kill_sb safe if fsi is NULL
author
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 22 Dec 2015 23:39:18 +0000
(17:39 -0600)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Thu, 22 Sep 2016 18:32:16 +0000
(13:32 -0500)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/devpts/inode.c
patch
|
blob
|
history
diff --git
a/fs/devpts/inode.c
b/fs/devpts/inode.c
index
5e21674
..
2b0f24c
100644
(file)
--- a/
fs/devpts/inode.c
+++ b/
fs/devpts/inode.c
@@
-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);
}