[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120320205455.31285.23096.stgit@zurg>
Date: Wed, 21 Mar 2012 00:54:55 +0400
From: Konstantin Khlebnikov <khlebnikov@...nvz.org>
To: Siddhesh Poyarekar <siddhesh.poyarekar@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH linux-next] mm: fix rcu-lock/unlock balance in vm_is_stack()
Fix bug introduced in "procfs: mark thread stack correctly in proc/<pid>/maps"
(patch in mm/linux-next)
Signed-off-by: Konstantin Khlebnikov <khlebnikov@...nvz.org>
---
mm/memory.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/mm/memory.c b/mm/memory.c
index ee85fc4..cc08b86 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3932,13 +3932,12 @@ pid_t vm_is_stack(struct task_struct *task,
while_each_thread(task, t) {
if (vm_is_stack_for_task(t, vma)) {
ret = t->pid;
- goto done;
+ break;
}
}
+ rcu_read_unlock();
}
-done:
- rcu_read_unlock();
return ret;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists