commit | ef46a13b9c4e49db8aeb319ced36f2c6d34e6bad | [log] [tgz] |
---|---|---|
author | Peter Xu <peterx@redhat.com> | Wed Mar 15 16:01:17 2017 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Apr 08 09:30:34 2017 +0200 |
tree | d2f28ec7bd5a6a08c682f03f444d001379c44715 | |
parent | 5289f1ce39a798e46f31db8efc2e3f99eebf73df [diff] |
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čmář <rkrcmar@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>