Changeset 95b47c82 in mainline for boot/genarch/balloc.c


Ignore:
Timestamp:
2007-04-15T20:51:04Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a7a970
Parents:
ddee708
Message:

Fix ticket #31.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/balloc.c

    rddee708 r95b47c82  
    4848       
    4949        addr = ballocs->base + ALIGN_UP(ballocs->size, alignment);
    50        
     50
     51        if (ALIGN_UP(ballocs->size, alignment) + size > BALLOC_MAX_SIZE)
     52                return NULL;
     53               
    5154        ballocs->size = ALIGN_UP(ballocs->size, alignment) + size;
    5255       
Note: See TracChangeset for help on using the changeset viewer.