aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/ds.c')
-rw-r--r--arch/x86/kernel/ds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c
index ab21c270bfa4..2b69994fd3a8 100644
--- a/arch/x86/kernel/ds.c
+++ b/arch/x86/kernel/ds.c
@@ -479,12 +479,12 @@ static int ds_release(struct task_struct *task, enum ds_qualifier qual)
479 goto out; 479 goto out;
480 480
481 kfree(context->buffer[qual]); 481 kfree(context->buffer[qual]);
482 context->buffer[qual] = 0; 482 context->buffer[qual] = NULL;
483 483
484 current->mm->total_vm -= context->pages[qual]; 484 current->mm->total_vm -= context->pages[qual];
485 current->mm->locked_vm -= context->pages[qual]; 485 current->mm->locked_vm -= context->pages[qual];
486 context->pages[qual] = 0; 486 context->pages[qual] = 0;
487 context->owner[qual] = 0; 487 context->owner[qual] = NULL;
488 488
489 /* 489 /*
490 * we put the context twice: 490 * we put the context twice: