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

From: Paolo Bonzini
Date: Mon Dec 09 2019 - 12:05:46 EST


On 06/12/19 03:53, linmiaohe wrote:
> 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(-)
>

Queued, thanks.

Paolo