Re: [PATCH] hinic: fix potential resource leak
From: liwei (GF)
Date: Wed Sep 16 2020 - 23:55:23 EST
Hi luobin,
On 2020/9/17 11:44, luobin (L) wrote:
> On 2020/9/17 11:03, Wei Li wrote:
>> + err = irq_set_affinity_hint(rq->irq, &rq->affinity_mask);
>> + if (err)
>> + goto err_irq;
>> +
>> + return 0;
>> +
>> +err_irq:
>> + rx_del_napi(rxq);
>> + return err;
> If irq_set_affinity_hint fails, irq should be freed as well.
>
Yes, indeed.
I will fix that in the next spin.
Thanks,
Wei