Skip to content
Snippets Groups Projects
Commit 999e1582 authored by Juergen Gross's avatar Juergen Gross Committed by Jan Beulich
Browse files

sched: fix sched_move_domain() for domain without vcpus


In case a domain is created with a cpupool other than Pool-0 specified
it will be moved to that cpupool before any vcpus are allocated.

This will lead to a NULL pointer dereference in sched_move_domain().

Fix that by tolerating vcpus not being allocated yet.

Fixes: 70fadc41 ("xen/cpupool: support moving domain between cpupools with different granularity")
Reported-by: default avatarBertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli's avatarDario Faggioli <dfaggioli@suse.com>
parent 487975df
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment