mirror of https://gitee.com/openkylin/linux.git
3f19597215
Using module_init() is wrong. E.g. ACPI adds and onlines memory before
our memory notifier gets registered.
This makes sure that ACPI memory detected during boot up will not result
in a kernel crash.
Easily reproducible with QEMU, just specify a DIMM when starting up.
Link: http://lkml.kernel.org/r/20180522100756.18478-3-david@redhat.com
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
kasan.c | ||
kasan.h | ||
kasan_init.c | ||
quarantine.c | ||
report.c |