Skip to content

Commit

Permalink
hw/xen_evtchn: Initialize flush_kvm_routes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dTenebrae authored and philmd committed Apr 2, 2024
1 parent 0fa5eef commit 95a3645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/i386/kvm/xen_evtchn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 95a3645

Please sign in to comment.