Messages in this thread | | | Date | Thu, 17 Sep 2020 17:04:14 -0700 (PDT) | Subject | Re: [PATCH net v2] hinic: fix potential resource leak | From | David Miller <> |
| |
From: Wei Li <liwei391@huawei.com> 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@huawei.com> > --- > v1 -> v2: > - Free irq as well when irq_set_affinity_hint() fails.
Applied, thank you.
| |