Commit d1f1e9c0 authored by Markus Metzger's avatar Markus Metzger Committed by Ingo Molnar

x86, bts: fix unlock problem in ds.c

Fix a problem where ds_request() returned an error without releasing the
ds lock.
Reported-by: default avatarStephane Eranian <eranian@gmail.com>
Signed-off-by: default avatarMarkus Metzger <markus.t.metzger@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 6cd10f8d
......@@ -384,8 +384,9 @@ static int ds_request(struct task_struct *task, void *base, size_t size,
spin_lock(&ds_lock);
error = -EPERM;
if (!check_tracer(task))
return -EPERM;
goto out_unlock;
error = -ENOMEM;
context = ds_alloc_context(task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment