projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1b241f
)
devpts: Make devpts_kill_sb safe if fsi is NULL
author
Eric W. Biederman
<ebiederm@xmission.com>
Wed, 14 Sep 2016 18:53:36 +0000
(13:53 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 23 Sep 2016 09:31:31 +0000
(11:31 +0200)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/devpts/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/devpts/inode.c
b/fs/devpts/inode.c
index a48b40b0bd1e35ddff49bbd28146b20f8187a544..e058ec6772076ca78c4edb628a8dfe11b63f3d68 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);
}