x86/mem_sharing: fix uninitialized 'preempted' variable
authorTamas K Lengyel <tamas@tklengyel.com>
Mon, 18 Jan 2021 17:23:06 +0000 (10:23 -0700)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 18 Jan 2021 17:50:11 +0000 (17:50 +0000)
commitcb34a2fa162184b150d48a3b6f385bacbec22ce7
treebdccad9bba43a35e4823e55858e277f609f8d353
parent1839011c7eccd1b119d71a36b07ed914bfa9c5da
x86/mem_sharing: fix uninitialized 'preempted' variable

UBSAN catches an uninitialized use of the 'preempted' variable in
fork_hap_allocation when there is no preemption.

Fixes: 41548c5472a ("mem_sharing: VM forking")
Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/mem_sharing.c