Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110282
b: refs/heads/master
c: 493cd91
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Sep 24, 2008
1 parent b4892fa commit cc327bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebdd90a8cb2e3963f55499850f02ce6003558b55
refs/heads/master: 493cd9122af5bd0b219974a48f0e31da0c29ff7e
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ static int ds_release(struct task_struct *task, enum ds_qualifier qual)
goto out;

kfree(context->buffer[qual]);
context->buffer[qual] = 0;
context->buffer[qual] = NULL;

current->mm->total_vm -= context->pages[qual];
current->mm->locked_vm -= context->pages[qual];
context->pages[qual] = 0;
context->owner[qual] = 0;
context->owner[qual] = NULL;

/*
* we put the context twice:
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/x86/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ static int ptrace_bts_config(struct task_struct *child,
goto errout;

if (cfg.flags & PTRACE_BTS_O_ALLOC) {
ds_ovfl_callback_t ovfl = 0;
ds_ovfl_callback_t ovfl = NULL;
unsigned int sig = 0;

/* we ignore the error in case we were not tracing child */
Expand All @@ -748,7 +748,7 @@ static int ptrace_bts_config(struct task_struct *child,
ovfl = ptrace_bts_ovfl;
}

error = ds_request_bts(child, /* base = */ 0, cfg.size, ovfl);
error = ds_request_bts(child, /* base = */ NULL, cfg.size, ovfl);
if (error < 0)
goto errout;

Expand Down Expand Up @@ -1086,7 +1086,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
break;

case PTRACE_BTS_SIZE:
ret = ds_get_bts_index(child, /* pos = */ 0);
ret = ds_get_bts_index(child, /* pos = */ NULL);
break;

case PTRACE_BTS_GET:
Expand Down

0 comments on commit cc327bd

Please sign in to comment.