diff options
author | Ralph Campbell | 2019-08-03 06:49:08 +0200 |
---|---|---|
committer | Linus Torvalds | 2019-08-03 16:02:01 +0200 |
commit | 7b358c6f12dc82364f6d317f8c8f1d794adbc3f5 (patch) | |
tree | 5cb79e5f2eec3952ece6881f28fe09194da02433 /mm/memory_hotplug.c | |
parent | coredump: split pipe command whitespace before expanding template (diff) | |
download | kernel-qcow2-linux-7b358c6f12dc82364f6d317f8c8f1d794adbc3f5.tar.gz kernel-qcow2-linux-7b358c6f12dc82364f6d317f8c8f1d794adbc3f5.tar.xz kernel-qcow2-linux-7b358c6f12dc82364f6d317f8c8f1d794adbc3f5.zip |
mm/migrate.c: initialize pud_entry in migrate_vma()
When CONFIG_MIGRATE_VMA_HELPER is enabled, migrate_vma() calls
migrate_vma_collect() which initializes a struct mm_walk but didn't
initialize mm_walk.pud_entry. (Found by code inspection) Use a C
structure initialization to make sure it is set to NULL.
Link: http://lkml.kernel.org/r/20190719233225.12243-1-rcampbell@nvidia.com
Fixes: 8763cb45ab967 ("mm/migrate: new memory migration helper for use with device memory")
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions