From: sashiko-bot@kernel.org
To: "Xiaolei Wang" <wangxiaolei01@kaihong.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH 2/2] pinctrl: rp1: use pinctrl_utils_free_map() for map cleanup
Date: Thu, 26 Nov 2026 04:02:47 +0000 [thread overview]
Message-ID: <sashiko-outbox-234717@kernel.org> (raw)
In-Reply-To: <20261126035420.1836760-3-wangxiaolei01@kaihong.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] pinctrl: rp1: missing Fixes trailer for CONFIGS_GROUP map config
leak
--
commit 1a3cbb21b3f3fd0731c811def787e2db607e8aeb
Author: Xiaolei Wang <wangxiaolei01@kaihong.com>
> pinctrl: rp1: use pinctrl_utils_free_map() for map cleanup
>
> The rp1 driver open-codes a dt_free_map callback that frees the config
> arrays of pinctrl maps and the map array itself. This duplicates
> pinctrl_utils_free_map(), which the pinctrl core already provides for
> exactly this purpose.
>
> The local copy only handles CONFIGS_PIN maps. Because the driver can
> delegate map creation to the generic pinconf DT parser, CONFIGS_GROUP
> maps may also be produced, and their config arrays would be leaked by
> the open-coded version. The core helper handles both types, so using
> it removes the duplicate code and closes that leak at the same time.
>
> Signed-off-by: Xiaolei Wang <wangxiaolei01@kaihong.com>
[Severity: Low]
Since this fixes a memory leak of PIN_MAP_TYPE_CONFIGS_GROUP config
arrays, should it include a Fixes tag?
Fixes: e3ce7b897388 ("pinctrl: rp1: Implement RaspberryPi RP1 pinmux/pinconf support")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126035420.1836760-1-wangxiaolei01@kaihong.com?part=2
prev parent reply other threads:[~2026-11-26 4:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 3:54 [PATCH 0/2] pinctrl: rp1: fix RT sleep and clean up map freeing Xiaolei Wang
2026-11-26 3:54 ` [PATCH 1/2] pinctrl: rp1: use raw spinlock for gpio regmap Xiaolei Wang
2026-11-26 3:54 ` [PATCH 2/2] pinctrl: rp1: use pinctrl_utils_free_map() for map cleanup Xiaolei Wang
2026-11-26 4:02 ` sashiko-bot [this message]
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=sashiko-outbox-234717@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wangxiaolei01@kaihong.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox