Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109137
b: refs/heads/master
c: f4156d1
h: refs/heads/master
i:
  109135: 4b8e01e
v: v3
  • Loading branch information
Carl Love authored and Paul Mackerras committed Aug 26, 2008
1 parent 2613d88 commit 0104128
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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: 2bb2e1db906e6e139636271d2cf46466d9e84005
refs/heads/master: f4156d1cd1dc260cca767a6c0636625f05446799
4 changes: 3 additions & 1 deletion trunk/drivers/oprofile/cpu_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ void free_cpu_buffers(void)
{
int i;

for_each_online_cpu(i)
for_each_online_cpu(i) {
vfree(per_cpu(cpu_buffer, i).buffer);
per_cpu(cpu_buffer, i).buffer = NULL;
}
}

int alloc_cpu_buffers(void)
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/oprofile/event_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ int alloc_event_buffer(void)
void free_event_buffer(void)
{
vfree(event_buffer);

event_buffer = NULL;
}


Expand Down

0 comments on commit 0104128

Please sign in to comment.