Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4a816fe in mainline


Ignore:
Timestamp:
2009-03-30T19:06:51Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
18251cc
Parents:
c213c77
Message:

more sanity checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/multiboot/multiboot.c

    rc213c77 r4a816fe  
    101101       
    102102        if ((flags & MBINFO_FLAGS_MODS) != 0) {
    103                 init.cnt = mi->mods_count;
     103                init.cnt = min(mi->mods_count, CONFIG_INIT_TASKS);
    104104                mods = (multiboot_mod_t *) MULTIBOOT_PTR(mi->mods_addr);
    105105               
     
    131131               
    132132                i = 0;
    133                 while (mmap_length > 0) {
     133                while ((mmap_length > 0) && (i < MEMMAP_E820_MAX_RECORDS)) {
    134134                        e820table[i++] = mme->mm_info;
    135135                       
Note: See TracChangeset for help on using the changeset viewer.