[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251119202208.1b0f5a3a@kernel.org>
Date: Wed, 19 Nov 2025 20:22:08 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: "Bastien Curutchet (Schneider Electric)" <bastien.curutchet@...tlin.com>
Cc: Woojung Huh <woojung.huh@...rochip.com>, UNGLinuxDriver@...rochip.com,
Andrew Lunn <andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>, "David
S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Paolo
Abeni <pabeni@...hat.com>, Richard Cochran <richardcochran@...il.com>, Arun
Ramadoss <arun.ramadoss@...rochip.com>, Pascal Eberhard
<pascal.eberhard@...com>, Miquèl Raynal
<miquel.raynal@...tlin.com>, Thomas Petazzoni
<thomas.petazzoni@...tlin.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH net v5 4/5] net: dsa: microchip: Free previously
initialized ports on init failures
On Tue, 18 Nov 2025 17:13:25 +0100 Bastien Curutchet (Schneider
Electric) wrote:
> if (dev->info->ptp_capable) {
> ret = ksz_ptp_irq_setup(ds, dp->index);
> - if (ret)
> - goto out_pirq;
> + if (ret) {
> + ksz_irq_free(&dev->ports[dp->index].pirq);
> + goto port_release;
please jump to the correct location in the unwind loop
it's perfectly normal for kernel code
> + }
> }
Powered by blists - more mailing lists