Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);