mirror of
https://github.com/qemu/qemu.git
synced 2025-01-19 12:03:51 +08:00
hw/xen_evtchn: Initialize flush_kvm_routes
In xen_evtchn_soft_reset() variable flush_kvm_routes can be used before being initialized. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Oleg Sviridov <oleg.sviridov@red-soft.ru> Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240329113939.257033-1-artem.chernyshev@red-soft.ru> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
0fa5eefa16
commit
95a3645527
@ -1097,7 +1097,7 @@ static int close_port(XenEvtchnState *s, evtchn_port_t port,
|
||||
int xen_evtchn_soft_reset(void)
|
||||
{
|
||||
XenEvtchnState *s = xen_evtchn_singleton;
|
||||
bool flush_kvm_routes;
|
||||
bool flush_kvm_routes = false;
|
||||
int i;
|
||||
|
||||
if (!s) {
|
||||
|
Loading…
Reference in New Issue
Block a user