diff options
author | Jan Stancek <[email protected]> | 2021-01-12 15:49:21 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-01-12 18:12:54 -0800 |
commit | f555befd185dc097ede887eb7b308c2e1c1369d4 (patch) | |
tree | b6b2fe3152b6aed379a1a7892505204812463604 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | c22ee5284cf58017fa8c6d21d8f8c68159b6faab (diff) |
mm: migrate: initialize err in do_migrate_pages
After commit 236c32eb1096 ("mm: migrate: clean up migrate_prep{_local}")',
do_migrate_pages can return uninitialized variable 'err' (which is
propagated to user-space as error) when 'from' and 'to' nodesets are
identical. This can be reproduced with LTP migrate_pages01, which calls
migrate_pages() with same set for both old/new_nodes.
Add 'err' initialization back.
Link: https://lkml.kernel.org/r/456a021c7ef3636d7668cec9dcb4a446a4244812.1609855564.git.jstancek@redhat.com
Fixes: 236c32eb1096 ("mm: migrate: clean up migrate_prep{_local}")
Signed-off-by: Jan Stancek <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Yang Shi <[email protected]>
Cc: Zi Yan <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Song Liu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions