Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3654784lfb; Mon, 9 May 2022 00:55:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2Qlqqdzj3vZ7dCQnr/KpC3AXyihrSH3XZabopuT3LpFyhajW3I0Yh9OYLyUYIaoIJ0xL0 X-Received: by 2002:a17:90a:4f0b:b0:1d9:acbd:1204 with SMTP id p11-20020a17090a4f0b00b001d9acbd1204mr25100762pjh.201.1652082940803; Mon, 09 May 2022 00:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652082940; cv=none; d=google.com; s=arc-20160816; b=J/EdX5vq9HJZcd40PSTcH5vet2YIdahTgLgitWR1mwfcnr+/5qABseUStIWfV2gAX3 QjGQ1JySO4aUrbgQMH0D2l0oCN4ouXc8cpKes8l1hRyxErMs/IJMT5NOMcjjh93qHYU2 18usqU4eOjXYVwYwmCfF7jdlU8pkjKIl8XLJwcEEYTaTxGmOX5pa9OAi5XyDi+DRvfax yIQ6lfEf23RbGr7bS47x1TYZ5GdXnPaXbvvy8HRtrKNOuM/SrQz89d/2O+2qHWZJq8T1 mGtaUaWqw6BrdOdWMbIeg1mUoEKHR1/XmKE74kp7m9sABgVKXZfJVN/WNqIOGz8V2WD+ Lqdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=tuUV7cx/ZqOADTy0Cjc/nQMapxLy4rUdN6az4ZJ9ce4=; b=GMxGrJuRTyZDRs9wAEALKDCq0ehmGqi5NuX7/B6Q/iGqkwYD7jEWn4Pb0825E9KKF2 tXtcls9FAzwB3l1Kd+NYrs4dkjVg+rjzox8BoTxRWaADiK/6hEdt8bA4y13R5vE1MP1c zxSnX4UehU6R62TwiYKfXTmcKWAH9kY0mfD7t11SJP1+N6/rvIelj8k1RZ5uJuYvS33b fy2ae/vq54JLLln82h/BhZsoDvTJAsd7nKGBKMFyriAZJpsag/+utqhcHUKBFCRJM9tv y5iZCzLt+QydIuOhUmnnvVbVOq+DnT4Xd4wlQNESjzb5PspWfon9eewIfML3IV0JEHZI YHjw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cq16-20020a056a00331000b004faa8dcd125si12361751pfb.72.2022.05.09.00.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:55:40 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 613CD1D043D; Mon, 9 May 2022 00:48:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390877AbiEFKWh (ORCPT + 99 others); Fri, 6 May 2022 06:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390871AbiEFKWf (ORCPT ); Fri, 6 May 2022 06:22:35 -0400 X-Greylist: delayed 401 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 06 May 2022 03:18:51 PDT Received: from mail.sf-mail.de (mail.sf-mail.de [IPv6:2a01:4f8:1c17:6fae:616d:6c69:616d:6c69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE9425F8DD for ; Fri, 6 May 2022 03:18:51 -0700 (PDT) Received: (qmail 10290 invoked from network); 6 May 2022 10:12:03 -0000 Received: from p200300cf070a0b0076d435fffeb7be92.dip0.t-ipconnect.de ([2003:cf:70a:b00:76d4:35ff:feb7:be92]:41972 HELO eto.sf-tec.de) (auth=eike@sf-mail.de) by mail.sf-mail.de (Qsmtpd 0.38dev) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPSA for ; Fri, 06 May 2022 12:12:03 +0200 From: Rolf Eike Beer To: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, netdev@vger.kernel.org, Yang Yingliang Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org Subject: Re: [PATCH] ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one() Date: Fri, 06 May 2022 12:11:56 +0200 Message-ID: <5564948.DvuYhMxLoT@eto.sf-tec.de> In-Reply-To: <20220506094250.3630615-1-yangyingliang@huawei.com> References: <20220506094250.3630615-1-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5819534.lOV4Wx5bFT"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart5819534.lOV4Wx5bFT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Freitag, 6. Mai 2022, 11:42:50 CEST schrieb Yang Yingliang: > Fix the missing pci_disable_device() before return > from tulip_init_one() in the error handling case. I would suggest removing the pci_disable_device() from tulip_remove_one() instead and using pcim_enable_device(), i.e. devres, and let the driver core handle all these things. Of course more of the used functions could be converted them, e.g. using devm_alloc_etherdev() and so on. Eike --nextPart5819534.lOV4Wx5bFT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSaYVDeqwKa3fTXNeNcpIk+abn8TgUCYnT0bAAKCRBcpIk+abn8 TpRJAKCSFE72ZhtgBsEs3gZhAmNmCY5v1ACgkwsyEadMyOecFRXMtHurVSrfEz0= =LQcA -----END PGP SIGNATURE----- --nextPart5819534.lOV4Wx5bFT--