]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390/kdump: Return NOTIFY_OK for all actions other than MEM_GOING_OFFLINE
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Thu, 10 Jul 2014 16:14:20 +0000 (18:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 22 Jul 2014 07:26:20 +0000 (09:26 +0200)
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 <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c

index 1e2264b46e4c1d21e31b1edeb39d935ea789c359..ae1d5be7dd885d4d20f7b1f37d56ebbab9f92526 100644 (file)
@@ -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))