Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42670
b: refs/heads/master
c: a120586
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and Linus Torvalds committed Dec 7, 2006
1 parent 51d662d commit dcb1bd7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 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: b30973f877fea1a3fb84e05599890fcc082a88e5
refs/heads/master: a120586873d3d64de93bd6d593d237e131994e58
6 changes: 2 additions & 4 deletions trunk/arch/i386/kernel/acpi/cstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,8 @@ static int __init ffh_cstate_init(void)

static void __exit ffh_cstate_exit(void)
{
if (cpu_cstate_entry) {
free_percpu(cpu_cstate_entry);
cpu_cstate_entry = NULL;
}
free_percpu(cpu_cstate_entry);
cpu_cstate_entry = NULL;
}

arch_initcall(ffh_cstate_init);
Expand Down
3 changes: 1 addition & 2 deletions trunk/block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ static int blk_trace_setup(request_queue_t *q, struct block_device *bdev,
if (bt) {
if (bt->dropped_file)
debugfs_remove(bt->dropped_file);
if (bt->sequence)
free_percpu(bt->sequence);
free_percpu(bt->sequence);
if (bt->rchan)
relay_close(bt->rchan);
kfree(bt);
Expand Down
9 changes: 5 additions & 4 deletions trunk/mm/allocpercpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
void percpu_depopulate(void *__pdata, int cpu)
{
struct percpu_data *pdata = __percpu_disguise(__pdata);
if (pdata->ptrs[cpu]) {
kfree(pdata->ptrs[cpu]);
pdata->ptrs[cpu] = NULL;
}

kfree(pdata->ptrs[cpu]);
pdata->ptrs[cpu] = NULL;
}
EXPORT_SYMBOL_GPL(percpu_depopulate);

Expand Down Expand Up @@ -123,6 +122,8 @@ EXPORT_SYMBOL_GPL(__percpu_alloc_mask);
*/
void percpu_free(void *__pdata)
{
if (unlikely(!__pdata))
return;
__percpu_depopulate_mask(__pdata, &cpu_possible_map);
kfree(__percpu_disguise(__pdata));
}
Expand Down
6 changes: 2 additions & 4 deletions trunk/net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,8 @@ snmp6_mib_free(void *ptr[2])
{
if (ptr == NULL)
return;
if (ptr[0])
free_percpu(ptr[0]);
if (ptr[1])
free_percpu(ptr[1]);
free_percpu(ptr[0]);
free_percpu(ptr[1]);
ptr[0] = ptr[1] = NULL;
}

Expand Down

0 comments on commit dcb1bd7

Please sign in to comment.