Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26263
b: refs/heads/master
c: cbf283c
h: refs/heads/master
i:
  26261: b11de90
  26259: b90202f
  26255: 4516dc3
v: v3
  • Loading branch information
Jesper Juhl authored and Tony Luck committed Apr 20, 2006
1 parent 78932d9 commit ff3098d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 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: c6180deb1da5d087341fb5a3c1a15e61492dcd6b
refs/heads/master: cbf283c048798ada7e062892b21de85fb5727243
7 changes: 2 additions & 5 deletions trunk/arch/ia64/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,10 @@ static struct kobj_type cache_ktype_percpu_entry = {

static void __cpuinit cpu_cache_sysfs_exit(unsigned int cpu)
{
if (all_cpu_cache_info[cpu].cache_leaves) {
kfree(all_cpu_cache_info[cpu].cache_leaves);
all_cpu_cache_info[cpu].cache_leaves = NULL;
}
kfree(all_cpu_cache_info[cpu].cache_leaves);
all_cpu_cache_info[cpu].cache_leaves = NULL;
all_cpu_cache_info[cpu].num_cache_leaves = 0;
memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject));

return;
}

Expand Down
8 changes: 2 additions & 6 deletions trunk/arch/ia64/sn/kernel/xpc_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ xpc_get_rsvd_page_pa(int nasid)
}

if (L1_CACHE_ALIGN(len) > buf_len) {
if (buf_base != NULL) {
kfree(buf_base);
}
kfree(buf_base);
buf_len = L1_CACHE_ALIGN(len);
buf = (u64) xpc_kmalloc_cacheline_aligned(buf_len,
GFP_KERNEL, &buf_base);
Expand All @@ -159,9 +157,7 @@ xpc_get_rsvd_page_pa(int nasid)
}
}

if (buf_base != NULL) {
kfree(buf_base);
}
kfree(buf_base);

if (status != SALRET_OK) {
rp_pa = 0;
Expand Down

0 comments on commit ff3098d

Please sign in to comment.