Re: [PATCH v1 1/1] s390/kvm: initialize uninitialized flags variable

Heiko Carstens
2024-10-30T17:04:29Z

On Wed, Oct 30, 2024 at 05:19:06PM +0100, Claudio Imbrenda wrote:
> The flags variable was being used uninitialized.
> Initialize it to 0 as expected.
>
> For some reason neither gcc nor clang reported a warning.
>
> Fixes: ce2b276ebe51 ("s390/mm/fault: Handle guest-related program interrupts in KVM")
> Reported-by: Janosch Frank <frankja@linux.ibm.com>
> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
> ---
> arch/s390/kvm/kvm-s390.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!