Skip to content

Commit 95a3645

Browse files
dTenebraephilmd
authored andcommitted
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 <[email protected]> Signed-off-by: Artem Chernyshev <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 0fa5eef commit 95a3645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/i386/kvm/xen_evtchn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ static int close_port(XenEvtchnState *s, evtchn_port_t port,
10971097
int xen_evtchn_soft_reset(void)
10981098
{
10991099
XenEvtchnState *s = xen_evtchn_singleton;
1100-
bool flush_kvm_routes;
1100+
bool flush_kvm_routes = false;
11011101
int i;
11021102

11031103
if (!s) {

0 commit comments

Comments
 (0)