diff options
Diffstat (limited to 'fs/proc/link.c')
-rw-r--r-- | fs/proc/link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/link.c b/fs/proc/link.c index b12050767..9df4de674 100644 --- a/fs/proc/link.c +++ b/fs/proc/link.c @@ -146,7 +146,7 @@ static int do_proc_readlink(struct dentry *dentry, char * buffer, int buflen) /* Check for special dentries.. */ pattern = NULL; inode = dentry->d_inode; - if (inode && dentry->d_parent == dentry) { + if (inode && IS_ROOT(dentry)) { if (S_ISSOCK(inode->i_mode)) pattern = "socket:[%lu]"; if (S_ISFIFO(inode->i_mode)) |