lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250727100537.4abf90fd@wsk>
Date: Sun, 27 Jul 2025 10:05:37 +0200
From: Lukasz Majewski <lukma@...x.de>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Andrew Lunn <andrew+netdev@...n.ch>, davem@...emloft.net, Eric Dumazet
 <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Rob Herring
 <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
 <conor+dt@...nel.org>, Shawn Guo <shawnguo@...nel.org>, Sascha Hauer
 <s.hauer@...gutronix.de>, Pengutronix Kernel Team <kernel@...gutronix.de>,
 Fabio Estevam <festevam@...il.com>, Richard Cochran
 <richardcochran@...il.com>, netdev@...r.kernel.org,
 devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
 imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org, Stefan Wahren
 <wahrenst@....net>, Simon Horman <horms@...nel.org>, Andrew Lunn
 <andrew@...n.ch>
Subject: Re: [net-next v16 04/12] net: mtip: The L2 switch driver for imx287

Hi Jakub,

> On Sat, 26 Jul 2025 22:13:23 +0200 Lukasz Majewski wrote:
> > > > +		ret = register_netdev(fep->ndev[i]);
> > > > +		if (ret) {
> > > > +			dev_err(&fep->ndev[i]->dev,
> > > > +				"%s: ndev %s register err:
> > > > %d\n", __func__,
> > > > +				fep->ndev[i]->name, ret);
> > > > +			break;
> > > > +		}      
> > > 
> > > Error handling in case of register_netdev() still buggy, AFAICT.
> > >   
> > 
> > I've added the code to set fep->ndev[i] = NULL to
> > mtip_ndev_cleanup(). IMHO this is the correct place to add it.  
> 
> If register_netdev() fails you will try to unregister it and hit 
> a BUG_ON().

Ach.... right. Thanks for explanation.


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Johanna Denk,
Tabea Lutz HRB 165235 Munich, Office: Kirchenstr.5, D-82194
Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@...x.de

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ