mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-19 15:39:07 +00:00
x86, bts: fix unlock problem in ds.c
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> Cc: <stable@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
6cd10f8db3
commit
d1f1e9c010
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user