Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (6 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/mm/swapfile.c

    r25370 r31869  
    21852185                swab32s(&swap_header->info.last_page);
    21862186                swab32s(&swap_header->info.nr_badpages);
     2187                if (swap_header->info.nr_badpages > MAX_SWAP_BADPAGES)
     2188                        return 0;
    21872189                for (i = 0; i < swap_header->info.nr_badpages; i++)
    21882190                        swab32s(&swap_header->info.badpages[i]);
Note: See TracChangeset for help on using the changeset viewer.