[PATCH 0/2] use jump label to handle resource release in irq_bypass_register_*

From: linmiaohe
Date: Thu Dec 05 2019 - 21:54:12 EST


From: Miaohe Lin <linmiaohe@xxxxxxxxxx>

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

Miaohe Lin (2):
KVM: lib: use jump label to handle resource release in
irq_bypass_register_consumer()
KVM: lib: use jump label to handle resource release in
irq_bypass_register_producer()

virt/lib/irqbypass.c | 38 ++++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)

--
2.19.1