KVM: Add proper lockdep assertion in I/O bus unregister
authorSean Christopherson <seanjc@google.com>
Mon, 12 Apr 2021 22:20:50 +0000 (15:20 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Apr 2021 08:18:51 +0000 (04:18 -0400)
commit7c896d375565a032705f64804f8c1189df1f7a89
tree809f828523b1059f174cd5892c26deacae45e2e2
parent5d3c4c79384af06e3c8e25b7770b6247496b4417
KVM: Add proper lockdep assertion in I/O bus unregister

Convert a comment above kvm_io_bus_unregister_dev() into an actual
lockdep assertion, and opportunistically add curly braces to a multi-line
for-loop.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210412222050.876100-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c