public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] x86, bts: fix unlock problem in ds.c
@ 2008-11-15 10:00 Markus Metzger
  2008-11-16  7:26 ` Ingo Molnar
  2008-11-20 21:14 ` stephane eranian
  0 siblings, 2 replies; 5+ messages in thread
From: Markus Metzger @ 2008-11-15 10:00 UTC (permalink / raw)
  To: lkml; +Cc: work, H. Peter Anvin, stephane eranian, Thomas Gleixner,
	Ingo Molnar

Fix a problem where ds_request() returned an error without releasing the
ds lock.

Reported-by: Stephane Eranian <eranian@gmail.com>
Signed-off-by: Markus Metzger <markus.t.metzger@gmail.com>
---

Index: gits/arch/x86/kernel/ds.c
===================================================================
--- gits.orig/arch/x86/kernel/ds.c	2008-11-15 10:51:51.000000000 +0100
+++ gits/arch/x86/kernel/ds.c	2008-11-15 10:53:43.000000000 +0100
@@ -384,8 +384,9 @@
 
 	spin_lock(&ds_lock);
 
+	error = -EPERM;
 	if (!check_tracer(task))
-		return -EPERM;
+		goto out_unlock;
 
 	error = -ENOMEM;
 	context = ds_alloc_context(task);



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-20 22:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15 10:00 [patch] x86, bts: fix unlock problem in ds.c Markus Metzger
2008-11-16  7:26 ` Ingo Molnar
2008-11-20 21:14 ` stephane eranian
2008-11-20 21:48   ` Ingo Molnar
2008-11-20 22:06     ` stephane eranian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox