From: Michael Holzheu Date: Thu, 10 Jul 2014 16:14:20 +0000 (+0200) Subject: s390/kdump: Return NOTIFY_OK for all actions other than MEM_GOING_OFFLINE X-Git-Tag: v3.17-rc1~93^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bd858e84d4a179c3030dccba56efb6a93e455c10;p=karo-tx-linux.git s390/kdump: Return NOTIFY_OK for all actions other than MEM_GOING_OFFLINE We only have to check kdump memory for the MEM_GOING_OFFLINE action. Therefore skip the test and return NOTIFY_OK for all other memory hotplug actions. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 1e2264b46e4c..ae1d5be7dd88 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -501,6 +501,8 @@ static int kdump_mem_notifier(struct notifier_block *nb, { struct memory_notify *arg = data; + if (action != MEM_GOING_OFFLINE) + return NOTIFY_OK; if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) return NOTIFY_BAD; if (arg->start_pfn > PFN_DOWN(crashk_res.end))