From: Lee Jones <lee@kernel.org>
To: Lee Jones <lee@kernel.org>, Pavel Machek <pavel@kernel.org>,
Fenglin Wu <quic_fenglinw@quicinc.com>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: stable@vger.kernel.org
Subject: Re: (subset) [PATCH v2] leds: flash: leds-qcom-flash: Fix registry access after re-bind
Date: Fri, 13 Jun 2025 14:46:07 +0100 [thread overview]
Message-ID: <174982236738.906599.2474133054869999823.b4-ty@kernel.org> (raw)
In-Reply-To: <20250529063335.8785-2-krzysztof.kozlowski@linaro.org>
On Thu, 29 May 2025 08:33:36 +0200, Krzysztof Kozlowski wrote:
> Driver in probe() updates each of 'reg_field' with 'reg_base':
>
> for (i = 0; i < REG_MAX_COUNT; i++)
> regs[i].reg += reg_base;
>
> 'reg_field' array (under variable 'regs' above) is statically allocated,
> thus each re-bind would add another 'reg_base' leading to bogus
> register addresses. Constify the local 'reg_field' array and duplicate
> it in probe to solve this.
>
> [...]
Applied, thanks!
[1/1] leds: flash: leds-qcom-flash: Fix registry access after re-bind
commit: fab15f57360b1e6620a1d0d6b0fbee896e6c1f07
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2025-06-13 13:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-29 6:33 Krzysztof Kozlowski
2025-05-29 6:46 ` Fenglin Wu
2025-06-13 13:46 ` Lee Jones [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=174982236738.906599.2474133054869999823.b4-ty@kernel.org \
--to=lee@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=quic_fenglinw@quicinc.com \
--cc=stable@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®