Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
xen.32203
656ee6c3-domain_create-error-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 656ee6c3-domain_create-error-path.patch of Package xen.32203
# Commit ff1178062094837d55ef342070e58316c43a54c9 # Date 2023-12-05 10:00:51 +0100 # Author Stewart Hildebrand <stewart.hildebrand@amd.com> # Committer Jan Beulich <jbeulich@suse.com> xen/domain: fix error path in domain_create() If rangeset_new() fails, err would not be set to an appropriate error code. Set it to -ENOMEM. Fixes: 580c458699e3 ("xen/domain: Call arch_domain_create() as early as possible in domain_create()") Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -668,6 +668,7 @@ struct domain *domain_create(domid_t dom watchdog_domain_init(d); init_status |= INIT_watchdog; + err = -ENOMEM; d->iomem_caps = rangeset_new(d, "I/O Memory", RANGESETF_prettyprint_hex); d->irq_caps = rangeset_new(d, "Interrupts", 0); if ( !d->iomem_caps || !d->irq_caps )
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