Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
xen.16555
libxl.prepare-environment-for-domcreate_stream_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libxl.prepare-environment-for-domcreate_stream_done.patch of Package xen.16555
From: Olaf Hering <olaf@aepfle.de> Date: Thu, 7 Mar 2019 11:51:51 +0100 Subject: libxl: prepare environment for domcreate_stream_done References: bsc#1126325 The function domcreate_bootloader_done may branch early to domcreate_stream_done, in case some error occoured. Here srs->dcs will be NULL, which leads to a crash. It is unclear what the purpose of that backpointer is. Perhaps it can be removed, and domcreate_stream_done could use CONTAINER_OF. Signed-off-by: Olaf Hering <olaf@aepfle.de> --- tools/libxl/libxl_create.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: xen-4.11.1-testing/tools/libxl/libxl_create.c =================================================================== --- xen-4.11.1-testing.orig/tools/libxl/libxl_create.c +++ xen-4.11.1-testing/tools/libxl/libxl_create.c @@ -1108,6 +1108,10 @@ static void domcreate_bootloader_done(li return; } + /* Prepare environment for domcreate_stream_done */ + if (!dcs->srs.dcs) + dcs->srs.dcs = dcs; + /* Restore */ callbacks->restore_results = libxl__srm_callout_callback_restore_results; @@ -1132,7 +1136,6 @@ static void domcreate_bootloader_done(li goto out; dcs->srs.ao = ao; - dcs->srs.dcs = dcs; dcs->srs.fd = restore_fd; dcs->srs.legacy = (dcs->restore_params.stream_version == 1); dcs->srs.back_channel = false;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor