* FAILED: patch "[PATCH] pmdomain: imx8m-blk-ctrl: fix out-of-range access of" failed to apply to 6.1-stable tree
@ 2026-02-07 14:39 gregkh
2026-02-07 15:23 ` [PATCH 6.1.y] pmdomain: imx8m-blk-ctrl: fix out-of-range access of bc->domains Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: gregkh @ 2026-02-07 14:39 UTC (permalink / raw)
To: xu.yang_2, daniel.baluta, ulf.hansson; +Cc: stable
The patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x 6bd8b4a92a901fae1a422e6f914801063c345e8d
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2026020754-trivial-grew-0df2@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 6bd8b4a92a901fae1a422e6f914801063c345e8d Mon Sep 17 00:00:00 2001
From: Xu Yang <xu.yang_2@nxp.com>
Date: Fri, 30 Jan 2026 13:11:07 +0800
Subject: [PATCH] pmdomain: imx8m-blk-ctrl: fix out-of-range access of
bc->domains
Fix out-of-range access of bc->domains in imx8m_blk_ctrl_remove().
Fixes: 2684ac05a8c4 ("soc: imx: add i.MX8M blk-ctrl driver")
Cc: stable@kernel.org
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
diff --git a/drivers/pmdomain/imx/imx8m-blk-ctrl.c b/drivers/pmdomain/imx/imx8m-blk-ctrl.c
index 74bf4936991d..19e992d2ee3b 100644
--- a/drivers/pmdomain/imx/imx8m-blk-ctrl.c
+++ b/drivers/pmdomain/imx/imx8m-blk-ctrl.c
@@ -340,7 +340,7 @@ static void imx8m_blk_ctrl_remove(struct platform_device *pdev)
of_genpd_del_provider(pdev->dev.of_node);
- for (i = 0; bc->onecell_data.num_domains; i++) {
+ for (i = 0; i < bc->onecell_data.num_domains; i++) {
struct imx8m_blk_ctrl_domain *domain = &bc->domains[i];
pm_genpd_remove(&domain->genpd);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 6.1.y] pmdomain: imx8m-blk-ctrl: fix out-of-range access of bc->domains
2026-02-07 14:39 FAILED: patch "[PATCH] pmdomain: imx8m-blk-ctrl: fix out-of-range access of" failed to apply to 6.1-stable tree gregkh
@ 2026-02-07 15:23 ` Sasha Levin
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-02-07 15:23 UTC (permalink / raw)
To: stable; +Cc: Xu Yang, stable, Daniel Baluta, Ulf Hansson, Sasha Levin
From: Xu Yang <xu.yang_2@nxp.com>
[ Upstream commit 6bd8b4a92a901fae1a422e6f914801063c345e8d ]
Fix out-of-range access of bc->domains in imx8m_blk_ctrl_remove().
Fixes: 2684ac05a8c4 ("soc: imx: add i.MX8M blk-ctrl driver")
Cc: stable@kernel.org
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/soc/imx/imx8m-blk-ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c
index a430c14ce16d3..29f00ff82c520 100644
--- a/drivers/soc/imx/imx8m-blk-ctrl.c
+++ b/drivers/soc/imx/imx8m-blk-ctrl.c
@@ -326,7 +326,7 @@ static int imx8m_blk_ctrl_remove(struct platform_device *pdev)
of_genpd_del_provider(pdev->dev.of_node);
- for (i = 0; bc->onecell_data.num_domains; i++) {
+ for (i = 0; i < bc->onecell_data.num_domains; i++) {
struct imx8m_blk_ctrl_domain *domain = &bc->domains[i];
pm_genpd_remove(&domain->genpd);
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-07 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-07 14:39 FAILED: patch "[PATCH] pmdomain: imx8m-blk-ctrl: fix out-of-range access of" failed to apply to 6.1-stable tree gregkh
2026-02-07 15:23 ` [PATCH 6.1.y] pmdomain: imx8m-blk-ctrl: fix out-of-range access of bc->domains Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox