KVM: s390: Fix potential spectre warnings
authorEric Farman <farman@linux.ibm.com>
Wed, 17 Apr 2019 00:54:14 +0000 (02:54 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 18 Apr 2019 08:13:51 +0000 (10:13 +0200)
commit58616e6a37842740349b7a42dc442ec50fc1d457
treedb952e560235efde062736ec0586991871eaf7fa
parent79a3aaa7b82e3106be97842dedfd8429248896e6
KVM: s390: Fix potential spectre warnings

Fix some warnings from smatch:

arch/s390/kvm/interrupt.c:2310 get_io_adapter() warn: potential spectre issue 'kvm->arch.adapters' [r] (local cap)
arch/s390/kvm/interrupt.c:2341 register_io_adapter() warn: potential spectre issue 'dev->kvm->arch.adapters' [w]

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20190417005414.47801-1-farman@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c