Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee73f656 authored by Marcelo Tosatti's avatar Marcelo Tosatti Committed by Avi Kivity
Browse files

KVM: PIT: control word is write-only



PIT control word (address 0x43) is write-only, reads are undefined.

Cc: stable@kernel.org
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 923de3cf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -467,6 +467,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);