kexec: initialize kexec_page in kexec()
PATCH 1/1 kexec: initialize kexec_page in kexec()
For the error patch to not see it uninitialized.
---
In the meantime I'll revert the MiniOS commit update in the main tree.
kexec.c +1 -1
@@ -168,7 +168,7 @@ int kexec(void *kernel, unsigned long kernel_size, const char *cmdline) {int ret;unsigned long *func; -void *kexec_page; +void *kexec_page =NULL ; ret =analyze_kernel (kernel, kernel_size);if ( ret )
Quoted 4 lines · Jan Beulich
For the error patch to not see it uninitialized.
Fixes 560c2a5584c4 ("mini-os: kexec: do the final kexec step")Signed-off-by Jan Beulich <[email protected]>
Juergen
Quoted 7 lines · Jürgen Groß
Quoted 4 lines · Jan Beulich
For the error patch to not see it uninitialized.
Fixes 560c2a5584c4 ("mini-os: kexec: do the final kexec step")Signed-off-by Jan Beulich <[email protected]>Reviewed-by Juergen Gross <[email protected]>
Thanks.
The revert actually didn't help, the problem was already introduced earlier. I now don't understand how things built previously. I'll re-apply the patch bumping the new revision to this about-to-be-committed fix.
Jan
Quoted 7 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 4 lines · Jan Beulich
For the error patch to not see it uninitialized.
Fixes 560c2a5584c4 ("mini-os: kexec: do the final kexec step")Signed-off-by Jan Beulich <[email protected]>
Quoted 7 lines
Quoted 1 line
Reviewed-by Juergen Gross <[email protected]>Thanks.
The revert actually didn't help, the problem was already introduced earlier. I now don't understand how things built previously. I'll re-apply the patch bumping the new revision to this about-to-be-committed fix.
It worked before because the patch enabling CONFIG_KEXEC for the stubdom wasn't there.
Juergen