mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-03 19:53:02 +09:00
KVM: PIT: control word is write-only
commit ee73f656a6 upstream.
PIT control word (address 0x43) is write-only, reads are undefined.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa1dcdd6eb
commit
d632dfd88b
@@ -465,6 +465,9 @@ static int pit_ioport_read(struct kvm_io_device *this,
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
addr &= KVM_PIT_CHANNEL_MASK;
|
||||
if (addr == 3)
|
||||
return 0;
|
||||
|
||||
s = &pit_state->channels[addr];
|
||||
|
||||
mutex_lock(&pit_state->lock);
|
||||
|
||||
Reference in New Issue
Block a user