diff --git a/patches.suse/kdump-add-crashkernel-cma-suffix.patch b/patches.suse/kdump-add-crashkernel-cma-suffix.patch index db68891..37e6d3b 100644 --- a/patches.suse/kdump-add-crashkernel-cma-suffix.patch +++ b/patches.suse/kdump-add-crashkernel-cma-suffix.patch @@ -208,7 +208,7 @@ index efe87d501c8c..1e952d2e451b 100644 }; /* -@@ -310,9 +312,11 @@ int __init parse_crashkernel(char *cmdline, +@@ -310,9 +312,10 @@ int __init parse_crashkernel(char *cmdline, unsigned long long *crash_size, unsigned long long *crash_base, unsigned long long *low_size, @@ -216,22 +216,20 @@ index efe87d501c8c..1e952d2e451b 100644 bool *high) { int ret; -+ unsigned long long cma_base; /* crashkernel=X[@offset] */ ret = __parse_crashkernel(cmdline, system_ram, crash_size, -@@ -343,6 +347,14 @@ int __init parse_crashkernel(char *cmdline, +@@ -343,6 +347,13 @@ int __init parse_crashkernel(char *cmdline, *high = true; } + -+ /* -+ * optional CMA reservation -+ * cma_base is ignored -+ */ -+ if (cma_size) ++ /* optional CMA reservation */ ++ if (cma_size) { ++ unsigned long long cma_base; + __parse_crashkernel(cmdline, 0, cma_size, + &cma_base, suffix_tbl[SUFFIX_CMA]); ++ } #endif if (!*crash_size) ret = -EINVAL;