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
fc
fc_frame.h -rw-r--r-- 7.0 KB
fcoe_sysfs.h -rw-r--r-- 3.1 KB
iscsi_if.h -rw-r--r-- 25.6 KB
iscsi_proto.h -rw-r--r-- 15.5 KB
iser.h -rw-r--r-- 2.3 KB
libfc.h -rw-r--r-- 30.9 KB
libfcoe.h -rw-r--r-- 13.4 KB
libiscsi.h -rw-r--r-- 13.7 KB
libiscsi_tcp.h -rw-r--r-- 3.8 KB
libsas.h -rw-r--r-- 17.8 KB
sas.h -rw-r--r-- 12.5 KB
sas_ata.h -rw-r--r-- 2.1 KB
scsi.h -rw-r--r-- 8.6 KB
scsi_bsg_iscsi.h -rw-r--r-- 2.2 KB
scsi_cmnd.h -rw-r--r-- 9.0 KB
scsi_common.h -rw-r--r-- 2.3 KB
scsi_dbg.h -rw-r--r-- 2.1 KB
scsi_device.h -rw-r--r-- 21.2 KB
scsi_devinfo.h -rw-r--r-- 3.7 KB
scsi_dh.h -rw-r--r-- 2.5 KB
scsi_driver.h -rw-r--r-- 897 bytes
scsi_eh.h -rw-r--r-- 1.6 KB
scsi_host.h -rw-r--r-- 26.5 KB
scsi_ioctl.h -rw-r--r-- 1.3 KB
scsi_proto.h -rw-r--r-- 10.7 KB
scsi_request.h -rw-r--r-- 667 bytes
scsi_tcq.h -rw-r--r-- 993 bytes
scsi_transport.h -rw-r--r-- 2.6 KB
scsi_transport_fc.h -rw-r--r-- 27.1 KB
scsi_transport_iscsi.h -rw-r--r-- 16.7 KB
scsi_transport_sas.h -rw-r--r-- 6.8 KB
scsi_transport_spi.h -rw-r--r-- 6.5 KB
scsi_transport_srp.h -rw-r--r-- 4.8 KB
scsicam.h -rw-r--r-- 636 bytes
sg.h -rw-r--r-- 13.6 KB
srp.h -rw-r--r-- 7.1 KB
viosrp.h -rw-r--r-- 5.4 KB

back to top