From: KOSAKI Motohiro Date: Fri, 8 Mar 2013 20:43:29 +0000 (-0800) Subject: mm/mempolicy.c: fix sp_node_init() argument ordering X-Git-Tag: v3.12-rc1~1257^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7880639c3e4fde5953ff243ee52204ddc5af641b;p=kernel%2Fkernel-generic.git mm/mempolicy.c: fix sp_node_init() argument ordering Currently, n_new is wrongly initialized. start and end parameter are inverted. Let's fix it. Signed-off-by: KOSAKI Motohiro Cc: Hillf Danton Cc: Sasha Levin Cc: Hugh Dickins Cc: Mel Gorman Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 868d08f..7431001 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2390,7 +2390,7 @@ restart: *mpol_new = *n->policy; atomic_set(&mpol_new->refcnt, 1); - sp_node_init(n_new, n->end, end, mpol_new); + sp_node_init(n_new, end, n->end, mpol_new); n->end = start; sp_insert(sp, n_new); n_new = NULL;