[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <30debf33-49b9-3ac1-cf2a-4ee2c0f1f13d@huawei.com>
Date: Thu, 17 Sep 2020 11:55:10 +0800
From: "liwei (GF)" <liwei391@...wei.com>
To: "luobin (L)" <luobin9@...wei.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<huawei.libin@...wei.com>, <guohanjun@...wei.com>
Subject: Re: [PATCH] hinic: fix potential resource leak
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
Powered by blists - more mailing lists