Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69134
b: refs/heads/master
c: 5cf9f06
h: refs/heads/master
v: v3
  • Loading branch information
Milton Miller authored and Ingo Molnar committed Oct 15, 2007
1 parent 808a71a commit 9699a1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 0dbee3a6b006dbe814d002cb18e94bf24a216451
refs/heads/master: 5cf9f062c8e33d5a09eaa447550330162b2a96ed
5 changes: 2 additions & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -5243,10 +5243,9 @@ static struct ctl_table sd_ctl_root[] = {
static struct ctl_table *sd_alloc_ctl_entry(int n)
{
struct ctl_table *entry =
kmalloc(n * sizeof(struct ctl_table), GFP_KERNEL);
kcalloc(n, sizeof(struct ctl_table), GFP_KERNEL);

BUG_ON(!entry);
memset(entry, 0, n * sizeof(struct ctl_table));

return entry;
}
Expand Down Expand Up @@ -6018,7 +6017,7 @@ static int build_sched_domains(const cpumask_t *cpu_map)
/*
* Allocate the per-node list of sched groups
*/
sched_group_nodes = kzalloc(sizeof(struct sched_group *)*MAX_NUMNODES,
sched_group_nodes = kcalloc(MAX_NUMNODES, sizeof(struct sched_group *),
GFP_KERNEL);
if (!sched_group_nodes) {
printk(KERN_WARNING "Can not alloc sched group node list\n");
Expand Down

0 comments on commit 9699a1e

Please sign in to comment.