diff options
Diffstat (limited to 'security/tomoyo/realpath.c')
-rw-r--r-- | security/tomoyo/realpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c index d1e05b047715..8d95e91c9fc4 100644 --- a/security/tomoyo/realpath.c +++ b/security/tomoyo/realpath.c | |||
@@ -103,7 +103,7 @@ char *tomoyo_realpath_from_path(struct path *path) | |||
103 | if (!buf) | 103 | if (!buf) |
104 | break; | 104 | break; |
105 | /* Get better name for socket. */ | 105 | /* Get better name for socket. */ |
106 | if (dentry->d_sb && dentry->d_sb->s_magic == SOCKFS_MAGIC) { | 106 | if (dentry->d_sb->s_magic == SOCKFS_MAGIC) { |
107 | struct inode *inode = dentry->d_inode; | 107 | struct inode *inode = dentry->d_inode; |
108 | struct socket *sock = inode ? SOCKET_I(inode) : NULL; | 108 | struct socket *sock = inode ? SOCKET_I(inode) : NULL; |
109 | struct sock *sk = sock ? sock->sk : NULL; | 109 | struct sock *sk = sock ? sock->sk : NULL; |