[LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
This commit is contained in:
Ian Campbell committed 2007-01-09 17:14:28 +00:00
1 parent c9d971bec6
commit b0a47bd080
1 file changed
+5 -3
+5 -3
View File
@@ -1012,9 +1012,11 @@ asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments,
goto out;
}
#ifdef CONFIG_XEN
result = xen_machine_kexec_load(image);
if (result)
goto out;
if (image) {
result = xen_machine_kexec_load(image);
if (result)
goto out;
}
#endif
/* Install the new kernel, and Uninstall the old */
image = xchg(dest_image, image);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.