From 9fbc6f3dede18dec150edbfeb0111fc8623327d0 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Fri, 8 Feb 2008 04:18:27 -0800 Subject: [PATCH] --- yaml --- r: 84609 b: refs/heads/master c: 4237e0d3de38da640d7c977d68f5f7f1d207a631 h: refs/heads/master i: 84607: 824f890c7cb8b180c0fc7269d4dd9a86200ea797 v: v3 --- [refs] | 2 +- trunk/fs/proc/generic.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 469b6f98af2a..30c03f1df7c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5b3fe63b19e00f3b2a14a09c979e84163029e390 +refs/heads/master: 4237e0d3de38da640d7c977d68f5f7f1d207a631 diff --git a/trunk/fs/proc/generic.c b/trunk/fs/proc/generic.c index 6a2fe5187b62..75cd8d709f7f 100644 --- a/trunk/fs/proc/generic.c +++ b/trunk/fs/proc/generic.c @@ -406,12 +406,12 @@ struct dentry *proc_lookup(struct inode * dir, struct dentry *dentry, struct nam spin_unlock(&proc_subdir_lock); error = -EINVAL; inode = proc_get_inode(dir->i_sb, ino, de); - spin_lock(&proc_subdir_lock); - break; + goto out_unlock; } } } spin_unlock(&proc_subdir_lock); +out_unlock: unlock_kernel(); if (inode) {