diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-08-08 17:37:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-19 15:12:28 +0200 |
commit | 30d1e0e806e5b2fadc297ba78f2d7afd6ba309cf (patch) | |
tree | 4391c372692bdc139411f68400ba950d47f852c2 /arch/arm/kvm | |
parent | Revert "KVM: x86: Increase the number of fixed MTRR regs to 10" (diff) | |
download | linux-30d1e0e806e5b2fadc297ba78f2d7afd6ba309cf.tar.xz linux-30d1e0e806e5b2fadc297ba78f2d7afd6ba309cf.zip |
virt/kvm/assigned-dev.c: Set 'dev->irq_source_id' to '-1' after free it
As a generic function, deassign_guest_irq() assumes it can be called
even if assign_guest_irq() is not be called successfully (which can be
triggered by ioctl from user mode, indirectly).
So for assign_guest_irq() failure process, need set 'dev->irq_source_id'
to -1 after free 'dev->irq_source_id', or deassign_guest_irq() may free
it again.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm/kvm')
0 files changed, 0 insertions, 0 deletions