OSDN Git Service

KVM: lib: use jump label to handle resource release in irq_bypass_register_producer()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 6 Dec 2019 02:53:53 +0000 (10:53 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2020 17:16:01 +0000 (18:16 +0100)
commitbbfdafa860bb41344fad8fea06b78c74ec79e181
tree978cd12f2850bb1f61e35c25068df4243684a0b6
parent8262fe85b4edc5fb3dd7b9520bf5c6b4f027fa55
KVM: lib: use jump label to handle resource release in irq_bypass_register_producer()

Use out_err jump label to handle resource release. It's a
good practice to release resource in one place and help
eliminate some duplicated code.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/lib/irqbypass.c