diff options
author | David Hildenbrand <david@redhat.com> | 2019-10-19 05:19:23 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-19 12:32:31 +0200 |
commit | 96c804a6ae8c59a9092b3d5dd581198472063184 (patch) | |
tree | da8ffdc9d8bddfd6be9e7d378c360a09c2f2001b /scripts | |
parent | fs/proc/page.c: don't access uninitialized memmaps in fs/proc/page.c (diff) | |
download | linux-96c804a6ae8c59a9092b3d5dd581198472063184.tar.xz linux-96c804a6ae8c59a9092b3d5dd581198472063184.zip |
mm/memory-failure.c: don't access uninitialized memmaps in memory_failure()
We should check for pfn_to_online_page() to not access uninitialized
memmaps. Reshuffle the code so we don't have to duplicate the error
message.
Link: http://lkml.kernel.org/r/20191009142435.3975-3-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Fixes: f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded memory to zones until online") [visible after d0dc12e86b319]
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: <stable@vger.kernel.org> [4.13+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions