diff options
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r-- | fs/proc/generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 6a2fe5187b62..75cd8d709f7f 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -406,12 +406,12 @@ struct dentry *proc_lookup(struct inode * dir, struct dentry *dentry, struct nam | |||
406 | spin_unlock(&proc_subdir_lock); | 406 | spin_unlock(&proc_subdir_lock); |
407 | error = -EINVAL; | 407 | error = -EINVAL; |
408 | inode = proc_get_inode(dir->i_sb, ino, de); | 408 | inode = proc_get_inode(dir->i_sb, ino, de); |
409 | spin_lock(&proc_subdir_lock); | 409 | goto out_unlock; |
410 | break; | ||
411 | } | 410 | } |
412 | } | 411 | } |
413 | } | 412 | } |
414 | spin_unlock(&proc_subdir_lock); | 413 | spin_unlock(&proc_subdir_lock); |
414 | out_unlock: | ||
415 | unlock_kernel(); | 415 | unlock_kernel(); |
416 | 416 | ||
417 | if (inode) { | 417 | if (inode) { |