diff options
-rw-r--r-- | mm/page_alloc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c31460918506..c18d1f7cff84 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2631,9 +2631,16 @@ static int __parse_numa_zonelist_order(char *s) | |||
2631 | 2631 | ||
2632 | static __init int setup_numa_zonelist_order(char *s) | 2632 | static __init int setup_numa_zonelist_order(char *s) |
2633 | { | 2633 | { |
2634 | if (s) | 2634 | int ret; |
2635 | return __parse_numa_zonelist_order(s); | 2635 | |
2636 | return 0; | 2636 | if (!s) |
2637 | return 0; | ||
2638 | |||
2639 | ret = __parse_numa_zonelist_order(s); | ||
2640 | if (ret == 0) | ||
2641 | strlcpy(numa_zonelist_order, s, NUMA_ZONELIST_ORDER_LEN); | ||
2642 | |||
2643 | return ret; | ||
2637 | } | 2644 | } |
2638 | early_param("numa_zonelist_order", setup_numa_zonelist_order); | 2645 | early_param("numa_zonelist_order", setup_numa_zonelist_order); |
2639 | 2646 | ||