aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/realpath.c')
-rw-r--r--security/tomoyo/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c
index d1e05b04771..8d95e91c9fc 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;