Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43133
b: refs/heads/master
c: 9cfa5b5
h: refs/heads/master
i:
  43131: 2a29a76
v: v3
  • Loading branch information
Burman Yan authored and Andi Kleen committed Dec 7, 2006
1 parent 95bec1b commit cdda9fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: d5d2448d896fbb9a427ee12eb8e5f6309f2473f7
refs/heads/master: 9cfa5b5dfafcfe64c1a48906f243cdd302f82471
3 changes: 1 addition & 2 deletions trunk/arch/i386/kernel/cpu/mtrr/if.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ mtrr_file_add(unsigned long base, unsigned long size,

max = num_var_ranges;
if (fcount == NULL) {
fcount = kmalloc(max * sizeof *fcount, GFP_KERNEL);
fcount = kzalloc(max * sizeof *fcount, GFP_KERNEL);
if (!fcount)
return -ENOMEM;
memset(fcount, 0, max * sizeof *fcount);
FILE_FCOUNT(file) = fcount;
}
if (!page) {
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/i386/kernel/cpu/mtrr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,8 @@ static int mtrr_save(struct sys_device * sysdev, pm_message_t state)
int i;
int size = num_var_ranges * sizeof(struct mtrr_value);

mtrr_state = kmalloc(size,GFP_ATOMIC);
if (mtrr_state)
memset(mtrr_state,0,size);
else
mtrr_state = kzalloc(size,GFP_ATOMIC);
if (!mtrr_state)
return -ENOMEM;

for (i = 0; i < num_var_ranges; i++) {
Expand Down

0 comments on commit cdda9fe

Please sign in to comment.