Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99917
b: refs/heads/master
c: 232b957
h: refs/heads/master
i:
  99915: 610bca3
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 281a02e commit b5b8c54
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d86623a0d55a14e7295e8ca1bd258e0c7f8dcb31
refs/heads/master: 232b957ae93973a5f8619ef61b916744b747478c
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ u64 __init e820_update_range(u64 start, u64 size, unsigned old_type,

BUG_ON(old_type == new_type);

if (size > (ULLONG_MAX - start))
size = ULLONG_MAX - start;

for (i = 0; i < e820.nr_map; i++) {
struct e820entry *ei = &e820.map[i];
u64 final_start, final_end;
Expand Down Expand Up @@ -441,6 +444,9 @@ u64 __init e820_remove_range(u64 start, u64 size, unsigned old_type,
int i;
u64 real_removed_size = 0;

if (size > (ULLONG_MAX - start))
size = ULLONG_MAX - start;

for (i = 0; i < e820.nr_map; i++) {
struct e820entry *ei = &e820.map[i];
u64 final_start, final_end;
Expand Down

0 comments on commit b5b8c54

Please sign in to comment.