kvm: x86: i8259: return initialized data on invalid-size read
authorPetr Matousek <[email protected]>
Wed, 11 Mar 2015 11:16:09 +0000 (12:16 +0100)
committerPaolo Bonzini <[email protected]>
Mon, 30 Mar 2015 14:40:07 +0000 (16:40 +0200)
commit2dccb4cdbf8fd4cb1d779a6f7ddd66d193bb5805
treefa2ca1d0b2df5ac8e31a1bc1c47be2673cce15eb
parent65844bb0a7861eefa3ce44cd788163ecc4e14f2d
kvm: x86: i8259: return initialized data on invalid-size read

If data is read from PIC with invalid access size, the return data stays
uninitialized even though success is returned.

Fix this by always initializing the data.

Signed-off-by: Petr Matousek <[email protected]>
Reported-by: Nadav Amit <[email protected]>
Message-Id: <20150311111609[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/i8259.c