KVM: x86: clear bus pointer when destroyed
authorPeter Xu <peterx@redhat.com>
Wed, 15 Mar 2017 08:01:17 +0000 (16:01 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:47:11 +0000 (00:47 +0200)
commitdd8db8538c8aee325e08d65843d0824e4ee03938
tree5f7c9e5520e586116fe1bead40fbe41ff5beecbd
parent620d73a9b795eea14c24b743423633fe54d65c98
KVM: x86: clear bus pointer when destroyed

commit df630b8c1e851b5e265dc2ca9c87222e342c093b upstream.

When releasing the bus, let's clear the bus pointers to mark it out. If
any further device unregister happens on this bus, we know that we're
done if we found the bus being released already.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Radim KrÄ\8dmáÅ\99 <rkrcmar@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
virt/kvm/kvm_main.c