commit | 9f41da81017657a194a4e145bab337f13a4d7fd9 | [log] [tgz] |
---|---|---|
author | Jack Cheung <jackc@codeaurora.org> | Mon Nov 28 16:41:28 2011 -0800 |
committer | Jack Cheung <jackc@codeaurora.org> | Tue Nov 29 18:28:05 2011 -0800 |
tree | b620a8cd103d0d10f6fec9692b0b58367306ac0d | |
parent | 2c60124cfd1fca38f961a88fbfcf2a0a96961e04 [diff] |
mm: Cast lowmem_reserve to long z->lowmem_reserve[classzone_idx] is an unsigned long but free_pages and min are longs. If free_pages is negative, the function will incorrectly return true because it will treat the negative long as a large, positive unsigned long. This change casts z->lowmem_reserve to a long and fixes a typo in the comment. Change-Id: Icada1fa5ca650fbcdb0656f637adbb98f223eec5 Signed-off-by: Jack Cheung <jackc@codeaurora.org>