[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dadc79e3-a923-7a4a-2d6f-3f33d614591e@huawei.com>
Date: Thu, 17 Sep 2020 11:44:11 +0800
From: "luobin (L)" <luobin9@...wei.com>
To: Wei Li <liwei391@...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
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.
Powered by blists - more mailing lists