diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/ds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c index 2b69994fd3a8..ac1d5b0586ba 100644 --- a/arch/x86/kernel/ds.c +++ b/arch/x86/kernel/ds.c | |||
@@ -384,8 +384,9 @@ static int ds_request(struct task_struct *task, void *base, size_t size, | |||
384 | 384 | ||
385 | spin_lock(&ds_lock); | 385 | spin_lock(&ds_lock); |
386 | 386 | ||
387 | error = -EPERM; | ||
387 | if (!check_tracer(task)) | 388 | if (!check_tracer(task)) |
388 | return -EPERM; | 389 | goto out_unlock; |
389 | 390 | ||
390 | error = -ENOMEM; | 391 | error = -ENOMEM; |
391 | context = ds_alloc_context(task); | 392 | context = ds_alloc_context(task); |