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:
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
|
blame
|
history
diff --git
a/fs/devpts/inode.c
b/fs/devpts/inode.c
index 5e216749bd96632c96391593a538985d03ff85d0..2b0f24cb7d5411874b41a059c2f1383e38a7688d 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);
}