diff --git a/kernel/sys.c b/kernel/sys.c index 0929c698affce76e1d48e52ca456b6c82298f928..f91218a5463e48e9716b3d14a4d54500477c6a6d 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -428,7 +428,7 @@ void kernel_kexec(void) { #ifdef CONFIG_KEXEC struct kimage *image; - image = xchg(&kexec_image, 0); + image = xchg(&kexec_image, NULL); if (!image) { return; }