]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: i8259: return initialized data on invalid-size read
authorPetr Matousek <pmatouse@redhat.com>
Wed, 11 Mar 2015 11:16:09 +0000 (12:16 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 13 Mar 2015 01:02:46 +0000 (22:02 -0300)
commitb9461074e9af391d0db3b1edcf7c0f8ec5520f98
tree09dd8804b784217ec2fd387bbe2ecf230c6b837e
parentb2ac74a18c98a99365bb9f7e3e95c6a821d0b922
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 <pmatouse@redhat.com>
Reported-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/i8259.c