Home Home > GIT Browse > SLE12-SP3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-09-18 22:25:14 +0200
committerMichal Suchanek <msuchanek@suse.de>2018-09-18 22:25:14 +0200
commit42c41d0e948adde6abda12280c5deed4e58a476a (patch)
treea5d3b1a7f8504a74ffeeb3420241a1bb0ccec4b2
parent65d22a7cc42ee110220bd4254c74971fe1fed71f (diff)
powerpc/fadump: re-register firmware-assisted dump if alreadySLE12-SP3
registered (bsc#1108170, bsc#1108823). suse-commit: fe18ff9031fde0bba19d73d100f143105b7fe9f5
-rw-r--r--arch/powerpc/kernel/fadump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c
index b41413ed6e95..712c67646827 100644
--- a/arch/powerpc/kernel/fadump.c
+++ b/arch/powerpc/kernel/fadump.c
@@ -1418,8 +1418,8 @@ static ssize_t fadump_register_store(struct kobject *kobj,
break;
case '1':
if (fw_dump.dump_registered == 1) {
- ret = -EEXIST;
- goto unlock_out;
+ /* Un-register Firmware-assisted dump */
+ fadump_unregister_dump(&fdm);
}
/* Register Firmware-assisted dump */
ret = register_fadump();