Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20062
b: refs/heads/master
c: 8c20faf
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Feb 7, 2006
1 parent 6755c8d commit be5b1d7
Show file tree
Hide file tree
Showing 2 changed files with 5 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: fa93895329b87112cb1fd784db969e60b5b46af6
refs/heads/master: 8c20fafa8548917fdbbd95588494498dd901b375
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/mm/lmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ long __init lmb_reserve(unsigned long base, unsigned long size)
{
struct lmb_region *_rgn = &(lmb.reserved);

BUG_ON(0 == size);

return lmb_add_region(_rgn, base, size);
}

Expand Down Expand Up @@ -227,6 +229,8 @@ unsigned long __init lmb_alloc_base(unsigned long size, unsigned long align,
long i, j;
unsigned long base = 0;

BUG_ON(0 == size);

#ifdef CONFIG_PPC32
/* On 32-bit, make sure we allocate lowmem */
if (max_addr == LMB_ALLOC_ANYWHERE)
Expand Down

0 comments on commit be5b1d7

Please sign in to comment.