Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234808
b: refs/heads/master
c: 77eed82
h: refs/heads/master
v: v3
  • Loading branch information
Kamal Mostafa authored and Ingo Molnar committed Feb 14, 2011
1 parent 036213a commit 5c52b05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7064d865af804b9b841e7b9a3e9b653e40c3e5ca
refs/heads/master: 77eed821accf5dd962b1f13bed0680e217e49112
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,9 @@ static int __init parse_memopt(char *p)

userdef = 1;
mem_size = memparse(p, &p);
/* don't remove all of memory when handling "mem={invalid}" param */
if (mem_size == 0)
return -EINVAL;
e820_remove_range(mem_size, ULLONG_MAX - mem_size, E820_RAM, 1);

return 0;
Expand Down

0 comments on commit 5c52b05

Please sign in to comment.