Revision f555befd185dc097ede887eb7b308c2e1c1369d4 authored by Jan Stancek on 12 January 2021, 23:49:21 UTC, committed by Linus Torvalds on 13 January 2021, 02:12:54 UTC
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 <jstancek@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Yang Shi <shy828301@gmail.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c22ee52
History
File Mode Size
atmel_lcdc.h -rw-r--r-- 6.2 KB
aty128.h -rw-r--r-- 13.3 KB
broadsheetfb.h -rw-r--r-- 2.1 KB
cirrus.h -rw-r--r-- 5.7 KB
cvisionppc.h -rw-r--r-- 1.5 KB
da8xx-fb.h -rw-r--r-- 2.0 KB
display_timing.h -rw-r--r-- 3.1 KB
edid.h -rw-r--r-- 228 bytes
gbe.h -rw-r--r-- 10.4 KB
hecubafb.h -rw-r--r-- 1.5 KB
ili9320.h -rw-r--r-- 5.7 KB
imx-ipu-image-convert.h -rw-r--r-- 6.5 KB
imx-ipu-v3.h -rw-r--r-- 16.3 KB
kyro.h -rw-r--r-- 2.4 KB
mach64.h -rw-r--r-- 46.9 KB
maxinefb.h -rw-r--r-- 1.2 KB
metronomefb.h -rw-r--r-- 1.5 KB
mipi_display.h -rw-r--r-- 5.0 KB
mmp_disp.h -rw-r--r-- 7.0 KB
neomagic.h -rw-r--r-- 4.9 KB
newport.h -rw-r--r-- 18.7 KB
of_display_timing.h -rw-r--r-- 788 bytes
of_videomode.h -rw-r--r-- 367 bytes
omap-panel-data.h -rw-r--r-- 1.7 KB
omapfb_dss.h -rw-r--r-- 23.9 KB
omapvrfb.h -rw-r--r-- 1.8 KB
permedia2.h -rw-r--r-- 9.0 KB
platform_lcd.h -rw-r--r-- 440 bytes
pm3fb.h -rw-r--r-- 45.3 KB
pmag-ba-fb.h -rw-r--r-- 1.0 KB
pmagb-b-fb.h -rw-r--r-- 2.3 KB
pxa168fb.h -rw-r--r-- 2.5 KB
radeon.h -rw-r--r-- 109.2 KB
s1d13xxxfb.h -rw-r--r-- 9.9 KB
sa1100fb.h -rw-r--r-- 1.3 KB
samsung_fimd.h -rw-r--r-- 17.0 KB
sh_mobile_lcdc.h -rw-r--r-- 6.0 KB
sisfb.h -rw-r--r-- 606 bytes
sstfb.h -rw-r--r-- 11.0 KB
tdfx.h -rw-r--r-- 5.3 KB
tgafb.h -rw-r--r-- 6.9 KB
trident.h -rw-r--r-- 3.2 KB
udlfb.h -rw-r--r-- 2.9 KB
uvesafb.h -rw-r--r-- 2.9 KB
vga.h -rw-r--r-- 13.7 KB
videomode.h -rw-r--r-- 1.3 KB
w100fb.h -rw-r--r-- 3.6 KB

back to top