Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1218641pxb; Tue, 1 Feb 2022 22:53:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoXcPTdz9dip1sXxw5WRVRT+rukFbStu+Mc8S61BiLvKpu0GcuLa5T1/EkOJ1jPQvdLM4B X-Received: by 2002:a17:902:da8f:: with SMTP id j15mr28987593plx.63.1643784804976; Tue, 01 Feb 2022 22:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643784804; cv=none; d=google.com; s=arc-20160816; b=ldLGK5OaeVYEkxP1ziccNwR+wlR599UlVKSUhtdun1Or562kWIRoNbQq9VCHm41abl ojJtTm+IhO/yArNB+b5Np9RHBB6ROqCkjAjKbivEhELuibL7DFT/5rwExoNQ7+AwmNB6 WVcTeUykr31rXKjJKUIR0G4X/3lGTpmrW7UKB0+LZDMdKsliJfieSWilTP0fDBViF9N/ kPRruQ/V4iWHkeykLqbrm13lfE/yROWYPlnKOorUx14SMizuOWuc+hqyaa33XqMMk3wo kwUgjD4upeRQuIMaTNmeq8nfAVqc74Yde/7pcAdtetvkuQEpYZUrpDEZvb3b2zjh6Ohb jICA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=OJ4oIU9LIIkRdPZc9Ts0bpjrdWVhPwoNWTpHsWOVLGI=; b=dPnYMUxo4ZVTFnAD29Q5mxVc/OBO8sDPPaNT97ygP0UMVAECmzzx5+bbzJwK+6enSK deMY3EMvZo+yQ/tgydE9BjRWm2z2iPFGqmMkbb5P5EYHcvN+ieK9Z2Q4BumLcgKrAyQf +c2JWa+EucaEgkNc+pTOSijovoK5OVSoZfRIsGF7ZFNWIAsjY773wMVcROTAgjB0SCdn bEPUQUKMWO6sGSNlH0jxz+okw5WgTn2Vsq7DepJNJAC21/S5P+i2nX0Z3cZNXTThVnDX f9fk8MaJz4gf4QoxDPmwQibKucLT0TfYDefPhDWondMyLzbifCnj67qGmIM1ueMgmxXO iO0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IpC4vWp6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13si16266673pfe.380.2022.02.01.22.53.08; Tue, 01 Feb 2022 22:53:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IpC4vWp6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237925AbiBAMPL (ORCPT + 72 others); Tue, 1 Feb 2022 07:15:11 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:51590 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231532AbiBAMPL (ORCPT ); Tue, 1 Feb 2022 07:15:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 346D7CE1861; Tue, 1 Feb 2022 12:15:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25F93C340EB; Tue, 1 Feb 2022 12:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643717707; bh=0a1TtzEvtL/O3TpSRngLbWpLXRNeNDog4yEmHJQGNDo=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=IpC4vWp6RHJ5FwN++YMaddqaL/p1K4pRVfiAfchmQyaimjCd45b3sjaouwR/z2tIg VapFN/QPphMIFfXgm0UqPk+6rNjq1t1y1K2vprcMCjdbDQlxedhKUyO0WvNt2QmwMv hQhSns0Jpe9sH8g9qV5Joc6e6JWnSY+weVNnqOSRMUUCbdXUvJfLVcEv9ei0QRNpca LiU/3ml6Z9IMEdAODAYUt025/H4fYdUZULTqMSZJdJyZUbg22/9Fhs6C/x2ZUdJhNu pYYOYJVd/F3GCwyqV34c6ROnexwNj199N7NbgtWMlEXyI53q1RF0bYnKISpgasL0rZ BC0KuEM0dU2wg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ipw2100: inproper error handling of ipw2100_pci_init_one From: Kalle Valo In-Reply-To: References: To: Peiwei Hu Cc: stas.yakovlev@gmail.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org, Peiwei Hu User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <164371770337.16633.7286807059175242667.kvalo@kernel.org> Date: Tue, 1 Feb 2022 12:15:04 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Peiwei Hu wrote: > goto fail instead of returning directly in error exiting > > Signed-off-by: Peiwei Hu The commit log does not answer to "why?". Also looking at ipw2100_pci_init_one() I think it would need more cleanup in error handling, for example pci_ionumap() is called in different order etc. Patch set to Changes Requested. -- https://patchwork.kernel.org/project/linux-wireless/patch/tencent_205AA371C910BBA2CF01B311811ABDF2560A@qq.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches