From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 973C3189F20 for ; Sat, 7 Feb 2026 14:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770475198; cv=none; b=oUp9LMc3I0sVRL2RB0YGR+nv5lYAy0iwNGn8rSzxCyWLypqPWBQ/mz5m8Hg+z2Wl068B9qrNd6C/rt/Ei5pJ514RrtMUv7PxB4Nm3j9HyaygnNNJOCMnpggSpXI67TpbLn6IPPFrfeSxOcXTuww+LPXePn5u6hbxZQ/fFAHhnUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770475198; c=relaxed/simple; bh=ue2bUpYUb6ZCQucmMuAyh4Y58XqWByshOJdixK74lp8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=WWIZGX+UMe7su4Mm70wBwx3N9nlPtDWhYfBvRO3cBTYqw4pWzN587IlBmS5Tz1A97+Lh9qx3FQxdDYExZyDmA8gvdFzww7bzTn9DL0yqxz5qo2D0Kh8BSmRfyN91PbAK4lPSVc0oWvwOebBMeIV4TcxTRLZcJ1+OAE8fO/2NOKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cR5Ba2Dx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cR5Ba2Dx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D06EEC116D0; Sat, 7 Feb 2026 14:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770475198; bh=ue2bUpYUb6ZCQucmMuAyh4Y58XqWByshOJdixK74lp8=; h=Subject:To:Cc:From:Date:From; b=cR5Ba2DxIk8dYXhz16LNvnkyVqUol2kAASo/4g8rNrA9JWDt/sh/SFysj5SB/N6z4 taOEFrah50NW9M89Gpm8fwZgTJGs7PgfmCiAFU00/Fp9bS+9RTvjWPyZ4mNelu7nO0 s5eqNz4z5fPwI10DdDaEJ3yT7GBxWqOLvIAE39CI= Subject: FAILED: patch "[PATCH] pmdomain: imx8m-blk-ctrl: fix out-of-range access of" failed to apply to 6.1-stable tree To: xu.yang_2@nxp.com,daniel.baluta@nxp.com,ulf.hansson@linaro.org Cc: From: Date: Sat, 07 Feb 2026 15:39:55 +0100 Message-ID: <2026020754-trivial-grew-0df2@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit 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 . 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 # git commit -s git send-email --to '' --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 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 Reviewed-by: Daniel Baluta Signed-off-by: Ulf Hansson 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);