From: Jakub Kicinski <kuba@kernel•org>
To: "Bastien Curutchet (Schneider Electric)" <bastien.curutchet@bootlin•com>
Cc: "Woojung Huh" <woojung.huh@microchip•com>,
UNGLinuxDriver@microchip•com, "Andrew Lunn" <andrew@lunn•ch>,
"Vladimir Oltean" <olteanv@gmail•com>,
"David S. Miller" <davem@davemloft•net>,
"Eric Dumazet" <edumazet@google•com>,
"Paolo Abeni" <pabeni@redhat•com>,
"Richard Cochran" <richardcochran@gmail•com>,
"Arun Ramadoss" <arun.ramadoss@microchip•com>,
"Pascal Eberhard" <pascal.eberhard@se•com>,
"Miquèl Raynal" <miquel.raynal@bootlin•com>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin•com>,
netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
stable@vger•kernel.org
Subject: Re: [PATCH net v5 4/5] net: dsa: microchip: Free previously initialized ports on init failures
Date: Wed, 19 Nov 2025 20:22:08 -0800 [thread overview]
Message-ID: <20251119202208.1b0f5a3a@kernel.org> (raw)
In-Reply-To: <20251118-ksz-fix-v5-4-8e9c7f56618d@bootlin.com>
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
> + }
> }
next prev parent reply other threads:[~2025-11-20 4:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 16:13 [PATCH net v5 0/5] net: dsa: microchip: Fix resource releases in error path Bastien Curutchet (Schneider Electric)
2025-11-18 16:13 ` [PATCH net v5 1/5] net: dsa: microchip: common: Fix checks on irq_find_mapping() Bastien Curutchet (Schneider Electric)
2025-11-18 16:13 ` [PATCH net v5 2/5] net: dsa: microchip: ptp: " Bastien Curutchet (Schneider Electric)
2025-11-18 16:13 ` [PATCH net v5 3/5] net: dsa: microchip: Don't free uninitialized ksz_irq Bastien Curutchet (Schneider Electric)
2025-11-18 16:13 ` [PATCH net v5 4/5] net: dsa: microchip: Free previously initialized ports on init failures Bastien Curutchet (Schneider Electric)
2025-11-20 4:22 ` Jakub Kicinski [this message]
2025-11-18 16:13 ` [PATCH net v5 5/5] net: dsa: microchip: Fix symetry in ksz_ptp_msg_irq_{setup/free}() Bastien Curutchet (Schneider Electric)
2025-11-18 16:32 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251119202208.1b0f5a3a@kernel.org \
--to=kuba@kernel$(echo .)org \
--cc=UNGLinuxDriver@microchip$(echo .)com \
--cc=andrew@lunn$(echo .)ch \
--cc=arun.ramadoss@microchip$(echo .)com \
--cc=bastien.curutchet@bootlin$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=miquel.raynal@bootlin$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=olteanv@gmail$(echo .)com \
--cc=pabeni@redhat$(echo .)com \
--cc=pascal.eberhard@se$(echo .)com \
--cc=richardcochran@gmail$(echo .)com \
--cc=stable@vger$(echo .)kernel.org \
--cc=thomas.petazzoni@bootlin$(echo .)com \
--cc=woojung.huh@microchip$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox