mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/vpt: fix build with old gcc
I believe it was the XSA-336 fix (42fcdd4232"x86/vpt: fix race when migrating timers between vCPUs") which has unmasked a bogus uninitialized variable warning. This is observable with gcc 4.3.4, but only on 4.13 and older; it's hidden on newer versions apparently due to the addition to _read_unlock() done by12509bbeb9("rwlocks: call preempt_disable() when taking a rwlock"). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> master commit:f2c620aa06master date: 2020-11-18 12:38:01 +0100
This commit is contained in:
1 parent
d11d977551
commit
7c6ee4ee23
1 file changed
+1
-1
@@ -401,7 +401,7 @@ int pt_update_irq(struct vcpu *v)
|
||||
* associated with the timer.
|
||||
*/
|
||||
time_cb *cb = NULL;
|
||||
void *cb_priv;
|
||||
void *cb_priv = NULL;
|
||||
|
||||
pt_vcpu_lock(v);
|
||||
/* Make sure the timer is still on the list. */
|
||||
|
||||