From: Chen Gang Date: Thu, 27 Jun 2013 23:51:39 +0000 (+1000) Subject: mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in... X-Git-Tag: next-20130628~3^2~529 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d2f8d50c288b4458084efa5c4117ac62b3b2914;p=karo-tx-linux.git mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree 'lru' may be used without initialized, so need regressing part of the related patch. The related patch: "3abf380 mm: remove lru parameter from __lru_cache_add and lru_cache_add_lru" Signed-off-by: Chen Gang Cc: Mel Gorman Cc: Rik van Riel Cc: Johannes Weiner Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index b96faea62a11..99b3ac7771ad 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -560,6 +560,7 @@ redo: * unevictable page on [in]active list. * We know how to handle that. */ + lru = page_lru_base_type(page); lru_cache_add(page); } else { /*