[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DCZEH0LV61DM.1G2AROXKGOWBR@kernel.org>
Date: Mon, 22 Sep 2025 16:31:18 +0200
From: "Michael Walle" <mwalle@...nel.org>
To: "Ioana Ciornei" <ioana.ciornei@....com>, "Rob Herring"
<robh@...nel.org>, "Krzysztof Kozlowski" <krzk+dt@...nel.org>, "Conor
Dooley" <conor+dt@...nel.org>, "Linus Walleij" <linus.walleij@...aro.org>,
"Bartosz Golaszewski" <brgl@...ev.pl>, "Shawn Guo" <shawnguo@...nel.org>,
"Lee Jones" <lee@...nel.org>, <devicetree@...r.kernel.org>,
<linux-gpio@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Cc: "Frank Li" <Frank.Li@....com>
Subject: Re: [PATCH v5 06/12] gpio: regmap: fix memory leak of gpio_regmap
structure
> 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@....com>
> Suggested-by: Michael Walle <mwalle@...nel.org>
Reviewed-by: Michael Walle <mwalle@...nel.org>
Download attachment "signature.asc" of type "application/pgp-signature" (298 bytes)
Powered by blists - more mailing lists