Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47019
b: refs/heads/master
c: 10b50b7
h: refs/heads/master
i:
  47017: 3c58106
  47015: f512f88
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Haavard Skinnemoen committed Feb 9, 2007
1 parent 0ba6732 commit 83b2f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 6eb484fe92e2f67f888dc87e97bfd938c0f7404e
refs/heads/master: 10b50b7dd2716b944299d45452d0875dbeb5f0c2
4 changes: 2 additions & 2 deletions trunk/arch/avr32/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/module.h>
#include <linux/root_dev.h>
#include <linux/cpu.h>
#include <linux/kernel.h>

#include <asm/sections.h>
#include <asm/processor.h>
Expand Down Expand Up @@ -174,8 +175,7 @@ static int __init parse_tag_mem_range(struct tag *tag,
* Copy the data so the bootmem init code doesn't need to care
* about it.
*/
if (mem_range_next_free >=
(sizeof(mem_range_cache) / sizeof(mem_range_cache[0])))
if (mem_range_next_free >= ARRAY_SIZE(mem_range_cache))
panic("Physical memory map too complex!\n");

new = &mem_range_cache[mem_range_next_free++];
Expand Down

0 comments on commit 83b2f1a

Please sign in to comment.