summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorkosaki.motohiro@jp.fujitsu.com <kosaki.motohiro@jp.fujitsu.com>2008-06-12 15:21:27 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-06-12 18:05:39 -0700
commitc700be3d1320d2be4f04c8a5330186b7df724438 (patch)
treef6f44d9fc37462ecc7ae7bac6b26c3da9ac29964 /mm
parentdf0bcab2c66ac876d5e80864fca5cce944a44540 (diff)
downloadlinux-3.10-c700be3d1320d2be4f04c8a5330186b7df724438.tar.gz
linux-3.10-c700be3d1320d2be4f04c8a5330186b7df724438.tar.bz2
linux-3.10-c700be3d1320d2be4f04c8a5330186b7df724438.zip
mm: fix incorrect variable type in do_try_to_free_pages()
"Smarter retry of costly-order allocations" patch series change behaver of do_try_to_free_pages(). But unfortunately ret variable type was unchanged. Thus an overflow is possible. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 9a29901ad3b..967d30ccd92 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1307,7 +1307,7 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
struct scan_control *sc)
{
int priority;
- int ret = 0;
+ unsigned long ret = 0;
unsigned long total_scanned = 0;
unsigned long nr_reclaimed = 0;
struct reclaim_state *reclaim_state = current->reclaim_state;