mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Dave Jones <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5ca3957510
commit
7880639c3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue