projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
devpts: return NULL pts 'priv' entry for non-devpts nodes
[platform/kernel/linux-rpi.git]
/
fs
/
devpts
/
inode.c
diff --git
a/fs/devpts/inode.c
b/fs/devpts/inode.c
index
d116453
..
79a5941
100644
(file)
--- a/
fs/devpts/inode.c
+++ b/
fs/devpts/inode.c
@@
-585,7
+585,8
@@
struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv)
*/
void *devpts_get_priv(struct dentry *dentry)
{
- WARN_ON_ONCE(dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC);
+ if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)
+ return NULL;
return dentry->d_fsdata;
}