From: "Michael Walle" <mwalle@kernel.org>
To: "Ioana Ciornei" <ioana.ciornei@nxp.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Shawn Guo" <shawnguo@kernel.org>, "Lee Jones" <lee@kernel.org>,
<devicetree@vger.kernel.org>, <linux-gpio@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: "Frank Li" <Frank.Li@nxp.com>
Subject: Re: [PATCH v5 06/12] gpio: regmap: fix memory leak of gpio_regmap structure
Date: Mon, 22 Sep 2025 16:31:18 +0200 [thread overview]
Message-ID: <DCZEH0LV61DM.1G2AROXKGOWBR@kernel.org> (raw)
In-Reply-To: <20250922142427.3310221-7-ioana.ciornei@nxp.com>
[-- Attachment #1: Type: text/plain, Size: 379 bytes --]
> The gpio_regmap structure is leaked on the error path. Fix this by
> jumping to the appropriate kfree instead of returning directly.
>
> Fixes: db305161880a ("gpio: regmap: Allow ngpio to be read from the property")
> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> Suggested-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Michael Walle <mwalle@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 297 bytes --]
next prev parent reply other threads:[~2025-09-22 14:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-22 14:24 [PATCH v5 00/12] drivers: gpio: and the QIXIS FPGA GPIO controller Ioana Ciornei
2025-09-22 14:24 ` [PATCH v5 01/12] dt-bindings: gpio: add QIXIS FPGA based " Ioana Ciornei
2025-09-22 14:40 ` Bartosz Golaszewski
2025-09-22 14:24 ` [PATCH v5 02/12] dt-bindings: fsl,fpga-qixis-i2c: add support for LX2160ARDB FPGA Ioana Ciornei
2025-09-22 14:24 ` [PATCH v5 03/12] dt-bindings: fsl,fpga-qixis: describe the gpio child node found on LS1046AQDS Ioana Ciornei
2025-09-23 14:37 ` Rob Herring (Arm)
2025-09-22 14:24 ` [PATCH v5 04/12] mfd: simple-mfd-i2c: keep compatible strings in alphabetical order Ioana Ciornei
2025-09-25 12:13 ` Lee Jones
2025-09-22 14:24 ` [PATCH v5 05/12] mfd: simple-mfd-i2c: add compatible string for LX2160ARDB Ioana Ciornei
2025-09-22 14:24 ` [PATCH v5 06/12] gpio: regmap: fix memory leak of gpio_regmap structure Ioana Ciornei
2025-09-22 14:31 ` Michael Walle [this message]
2025-09-22 14:24 ` [PATCH v5 07/12] gpio: regmap: add the .fixed_direction_output configuration parameter Ioana Ciornei
2025-09-22 14:32 ` Michael Walle
2025-09-22 14:39 ` Bartosz Golaszewski
2025-09-22 14:24 ` [PATCH v5 08/12] gpio: add QIXIS FPGA GPIO controller Ioana Ciornei
2025-09-22 14:34 ` Michael Walle
2025-09-22 14:39 ` Bartosz Golaszewski
2025-09-30 23:00 ` Linus Walleij
2025-09-22 14:24 ` [PATCH v5 09/12] arm64: dts: lx2160a-rdb: describe the QIXIS FPGA and two child GPIO controllers Ioana Ciornei
2025-09-22 14:24 ` [PATCH v5 10/12] arm64: dts: ls1046a-qds: describe the FPGA based GPIO controller Ioana Ciornei
2025-09-22 14:24 ` [PATCH v5 11/12] arm64: dts: lx2160a-rdb: fully describe the two SFP+ cages Ioana Ciornei
2025-09-22 14:24 ` [PATCH v5 12/12] arm64: dts: ls1046a-qds: describe the two on-board " Ioana Ciornei
2025-09-22 14:36 ` (subset) [PATCH v5 00/12] drivers: gpio: and the QIXIS FPGA GPIO controller Bartosz Golaszewski
2025-09-22 14:41 ` Ioana Ciornei
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=DCZEH0LV61DM.1G2AROXKGOWBR@kernel.org \
--to=mwalle@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ioana.ciornei@nxp.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.