Re: [PATCH net v2] hinic: fix potential resource leak

From: David Miller
Date: Thu Sep 17 2020 - 20:04:18 EST


From: Wei Li <liwei391@xxxxxxxxxx>
Date: Thu, 17 Sep 2020 20:29:50 +0800

> In rx_request_irq(), it will just return what irq_set_affinity_hint()
> returns. If it is failed, the napi and irq requested are not freed
> properly. So add exits for failures to handle these.
>
> Signed-off-by: Wei Li <liwei391@xxxxxxxxxx>
> ---
> v1 -> v2:
> - Free irq as well when irq_set_affinity_hint() fails.

Applied, thank you.