Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp119085pxk; Wed, 16 Sep 2020 21:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycPlf0ui0eZOLD0pVX4UPSpGbZXlbiTbiC0r6jVXGTwZ3h27oilI6OjmVREjnoFXtie8ky X-Received: by 2002:a17:906:f897:: with SMTP id lg23mr30528133ejb.89.1600315265670; Wed, 16 Sep 2020 21:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600315265; cv=none; d=google.com; s=arc-20160816; b=vOg/+gh/TnVStyJkPx9PX+Ri49kiRdj0kYT3vphuqsmZ0brttYDHPN2SdaYX2saGfM vXJyn/FxuKaoq4OX60/xHbqNE3/bPv4Fw6WpSkV94i9phnC1yFwMtA+yfg+tX6NaM9uN FeB4sFTyGlMtndsscEc0tQXI7QBDGWo21ARuXcH60G/UJauxX/HUl15FjHD90P5wRwqt SC4wPmW4u/wcMgOaT//ruq9RTFJ25sXxD5ZUKCBX4jzk0iDA6MSzB4vKb3oLMoIASNt2 Mdplhjx0UyCV5dVcZmfJX4tT7MjvaAUI/OyBB6jmrsBbyalCTEqxKzJuQHHC1hwbub2O YPTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=+AzCGX8psum1fVr7WSPrbr+2q53VQ5EunmsjjZtKlWA=; b=V72WeMurlp4sPR6/JatXa4fMgWnNDs18jkSU0AgYEgopnknVIneaf46Yh4jqgWjnUt 9ROQcHDrYUgVWGlv47UCWLqoXwlOw9ESodNRk/O2I2yQRnda4sqfOEZJEZPke57R/uR/ GdOlGZ48bsfzrbMek1ZRtxwi2jAgf9xROH8TX72CnlIEIMnZNNvwk13TMZIIO1JlbmU7 qE3uMjyT/Xa2mhB9Jb8FObvvDtXbxxHMcB8TFaGELn0N2FOReE6ihIDzpcmfTtw1/qex n6kXRcrMHN3YuiX7IV88Bf3piWX5AmjwgBsGW/xX3HeXdWEIXbXr8375dcH6L2gMStUP PQOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si12858531ejr.369.2020.09.16.21.00.41; Wed, 16 Sep 2020 21:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726121AbgIQD7n (ORCPT + 99 others); Wed, 16 Sep 2020 23:59:43 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3542 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725886AbgIQD7k (ORCPT ); Wed, 16 Sep 2020 23:59:40 -0400 X-Greylist: delayed 924 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Sep 2020 23:59:37 EDT Received: from dggeme758-chm.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 1BFA9FB61D8C2F704366; Thu, 17 Sep 2020 11:44:12 +0800 (CST) Received: from [10.174.61.242] (10.174.61.242) by dggeme758-chm.china.huawei.com (10.3.19.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Thu, 17 Sep 2020 11:44:11 +0800 Subject: Re: [PATCH] hinic: fix potential resource leak To: Wei Li , "David S. Miller" , Jakub Kicinski CC: , , , References: <20200917030307.47195-1-liwei391@huawei.com> From: "luobin (L)" Message-ID: Date: Thu, 17 Sep 2020 11:44:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20200917030307.47195-1-liwei391@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.61.242] X-ClientProxiedBy: dggeme704-chm.china.huawei.com (10.1.199.100) To dggeme758-chm.china.huawei.com (10.3.19.104) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.