Article View: linux.kernel.netdev
Article #15Re: [PATCH net 1/2] net: cpsw: unregister secondary netdev on probe failure
From: Jakub Kicinski
Date: Wed, 07 Oct 2026 00:57
Date: Wed, 07 Oct 2026 00:57
10 lines
6041 bytes
6041 bytes
On Sat, 3 Oct 2026 16:09:14 +0200 Karl Mehltretter wrote: > + bool secondary_registered = false; the rule of thumb is that error unwind should match the remove() If not possible match the condition of the code, don't add local vars Sashiko is right to suggest to fold the two fixes together. -- pw-bot: cr
Technical Details
Message-ID:
<20261006175721.75e77a3b@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342134-linux-kernel-netdev=dewy.ruReferences:
<cover.1791035789.git.kmehltretter@gmail.com> <2f459154f5bca89a07dc978c834e98198c08c331.1791035789.git.kmehltretter@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342134-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 1/2] net: cpsw: unregister secondary netdev on probe failure Date: Tue, 6 Oct 2026 17:57:21 -0700 Organization: Usenet Network Message-ID: <20261006175721.75e77a3b@kernel.org> References: <cover.1791035789.git.kmehltretter@gmail.com> <2f459154f5bca89a07dc978c834e98198c08c331.1791035789.git.kmehltretter@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="546765"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:yR/t80uZLpeo37ViV6i0joOyGbI= sha256:kv47cbkqxAozjCZyX+5mikRgG4779cYKiyT1v0XbArs= sha1:RqBhamYwt2baiILaj10R6KtnWRY= sha256:uCCTAozWpJvAYXatVkd1K1lN+j4cduslwDYdP7HQoOk= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id E5FBE10F09C; Wed, 7 Oct 2026 03:58:18 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D8ZOqPN4qdYK; Wed, 7 Oct 2026 03:58:15 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342134-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 736AF10F067; Wed, 7 Oct 2026 03:58:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id AF1122DFAD; Wed, 7 Oct 2026 00:57:29 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DDF4342151; Wed, 7 Oct 2026 00:57:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="euZFn3PS" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67FD933938D; Wed, 7 Oct 2026 00:57:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791334643; cv=none; b=rhlMVROKpJPnwO2usMlegzH6AqNro2hwY6x59KKVm/m7TFT23YjNeXlja+bufY7SIFsGjiyGtUfwnGBa1cp5I0XOPoGb8Yom3lgisf+69owM7XQN+ofSOgD8TCTAtArlgLvDZoeOsaaWg+gc1SE7cI7FPlzTWOUvcP9PiHRAEUQ= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791334643; c=relaxed/simple; bh=HDWB0hyZ1Zk6gqprDciwya9P+bNmivD0yB9iLhNH0qk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=teWOw/Boa7GcXiAU+qkmUPtwjyk6+qH2GG7SXCgHn5hyK1fTqRnqORSi4oh02zcGGGdpqdO3h4iQ+Ng3kSFuSc3MPg5se7S7CCE6CFbzmZvI3tOe524yMH9FQ11l4XkRFVZxVcBcjA+EAxTl/bdqDzyK6IHItiy57iyNMTos1JM= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=euZFn3PS; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEC241F0089D; Wed, 7 Oct 2026 00:57:21 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791334642; bh=2WIBQo/MW7LjizXTdEZc1dX3DXoK6JiaS0RgVw9TJ28=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=euZFn3PSXj2IEAxL96MAKwh0DZr2qx3a+VByqJ3km4MbH2krW45H+mWQoEP2rdsyK U33xUcV2Qfpb7KNqMUHzz4HLSduN1l+q2tGB30xeRGVNbsj+rhgfmRugJIvpRc0y4T yxdeKkU46I/Holrh0uOL+Iwx7r7X2Mv29dB5Mo4CmxOAHB1pvYfeqYD9IA1U0QM++B kAXbcP0khBtp6jDvwHzjUr+HiYkg+vyGxo7DrVEYzjJJn3cxEZRxXVTNPzZuuU6AxB g6qtC1rxy1LuPToT5AJ8TJJr4FRwV1ijsJLuBr7BGMPSOseZX0j9t4BEPbM0ogtw9A TEM3kTElI8Zkw== X-Cc: netdev@vger.kernel.org, Siddharth Vadapalli <s-vadapalli@ti.com>, Roger Quadros <rogerq@kernel.org>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Keerthy <j-keerthy@ti.com>, Kevin Hao <haokexin@gmail.com>, Alexander Sverdlin <alex@sverdlin.org>, Arnd Bergmann <arnd@arndb.de>, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org X-In-Reply-To: <2f459154f5bca89a07dc978c834e98198c08c331.1791035789.git.kmehltretter@gmail.com> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>