diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-08-02 17:55:54 +0200 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-08-02 22:41:02 +0200 |
commit | 3898da947bbaf9e7fd5816e825978d360028bba2 (patch) | |
tree | 5af705bb61bbc9760de0fbc3d102227f0b21fed4 /arch/score | |
parent | ebd28fcb55e288030abb5bca4869603b3e1f5f7c (diff) | |
download | linux-3898da947bbaf9e7fd5816e825978d360028bba2.tar.bz2 |
KVM: avoid using rcu_dereference_protected
During teardown, accesses to memslots and buses are using
rcu_dereference_protected with an always-true condition because
these accesses are done outside the usual mutexes. This
is because the last reference is gone and there cannot be any
concurrent modifications, but rcu_dereference_protected is
ugly and unobvious.
Instead, check the refcount in kvm_get_bus and __kvm_memslots.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/score')
0 files changed, 0 insertions, 0 deletions