Re: [PATCH v1A 2/3] x86/xen/msr: Fix uninitialized symbol 'err'

2025-05-17 Thread Jürgen Groß
On 17.05.25 18:57, Xin Li (Intel) wrote: xen_read_msr_safe() currently passes an uninitialized argument err to xen_do_read_msr(). But as xen_do_read_msr() may not set the argument, xen_read_msr_safe() could return err with an unpredictable value. To ensure correctness, initialize err to 0 (repr

[PATCH v1A 2/3] x86/xen/msr: Fix uninitialized symbol 'err'

2025-05-17 Thread Xin Li (Intel)
xen_read_msr_safe() currently passes an uninitialized argument err to xen_do_read_msr(). But as xen_do_read_msr() may not set the argument, xen_read_msr_safe() could return err with an unpredictable value. To ensure correctness, initialize err to 0 (representing success) in xen_read_msr_safe().