Messages in this thread Patch in this message | | | Subject | [patch] x86, bts: fix unlock problem in ds.c | Date | Sat, 15 Nov 2008 11:00:17 +0100 | From | Markus Metzger <> |
| |
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);
| |