diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 13e3ab99eb74..7169a713da1b 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1167,7 +1167,6 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b | |||
1167 | struct dentry *de; | 1167 | struct dentry *de; |
1168 | struct vfsmount *mnt = NULL; | 1168 | struct vfsmount *mnt = NULL; |
1169 | 1169 | ||
1170 | lock_kernel(); | ||
1171 | 1170 | ||
1172 | if (current->fsuid != inode->i_uid && !capable(CAP_DAC_OVERRIDE)) | 1171 | if (current->fsuid != inode->i_uid && !capable(CAP_DAC_OVERRIDE)) |
1173 | goto out; | 1172 | goto out; |
@@ -1183,7 +1182,6 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b | |||
1183 | dput(de); | 1182 | dput(de); |
1184 | mntput(mnt); | 1183 | mntput(mnt); |
1185 | out: | 1184 | out: |
1186 | unlock_kernel(); | ||
1187 | return error; | 1185 | return error; |
1188 | } | 1186 | } |
1189 | 1187 | ||