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 789B6267F64 for ; Tue, 8 Apr 2025 10:36:27 +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=1744108587; cv=none; b=alJW2EkXZ8GyFFThNvte4WPeG1Q/lfLedYobYTieXNYt/aGQjNEzH2+kYtut3Bo9y6GPVo0ElTbdenoOTuG/avkAjgbeGfqbEHiUxcHUEXdQsTZxpM1fMM/z8Ud5Ipr5TGaoOUb0Z5Ko6fvzr8ijdkIDbWidA2CLqiB1aKQJY74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744108587; c=relaxed/simple; bh=B/kjJf4gkU7q91yKwCX4jvWswz8/T/XxfxWESGhA9Gc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=kLtfFiD/4LKIbITvGJCRilqzh5CPGvUL1TMgi0LhUhbS13xYQLe9s8gm2x7V4I+78KkoLlB06oGp6+/OENnXWJ3NaNgBdHjxwkfUZwJ965JxpF+G5IHUJggJ2dM4F3s7Ga8qJ5Ity/LjpCpAzsn3ofZ2R8BSqTdxo0fU5ajUOuo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=03ZBkm1e; 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="03ZBkm1e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 953D0C4CEE5; Tue, 8 Apr 2025 10:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744108586; bh=B/kjJf4gkU7q91yKwCX4jvWswz8/T/XxfxWESGhA9Gc=; h=Subject:To:Cc:From:Date:From; b=03ZBkm1exkviWEfqtIJRtBG/+q37VisXRnFXCyFwuKMGM7SDOSUSHWXShrBCHSih7 +2dWk/eVtFio4NgQFW32SomJSvE1CVJCxwUCGzl/3YJvMXCK3eMMACfbxZQwHXWQaK fhpBRquxKgDGOx6O+cebf7Bqfgxg8gfGRrvS35GA= Subject: FAILED: patch "[PATCH] mmc: sdhci-msm: fix dev reference leaked through" failed to apply to 6.12-stable tree To: tudor.ambarus@linaro.org,abel.vesa@linaro.org,andersson@kernel.org,krzysztof.kozlowski@linaro.org,manivannan.sadhasivam@linaro.org,ulf.hansson@linaro.org Cc: From: Date: Tue, 08 Apr 2025 12:34:46 +0200 Message-ID: <2025040846-bonsai-tackiness-6500@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.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x cbef7442fba510b7eb229dcc9f39d3dde4a159a4 # git commit -s git send-email --to '' --in-reply-to '2025040846-bonsai-tackiness-6500@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From cbef7442fba510b7eb229dcc9f39d3dde4a159a4 Mon Sep 17 00:00:00 2001 From: Tudor Ambarus Date: Fri, 17 Jan 2025 14:18:51 +0000 Subject: [PATCH] mmc: sdhci-msm: fix dev reference leaked through of_qcom_ice_get The driver leaks the device reference taken with of_find_device_by_node(). Fix the leak by using devm_of_qcom_ice_get(). Fixes: c7eed31e235c ("mmc: sdhci-msm: Switch to the new ICE API") Cc: stable@vger.kernel.org Signed-off-by: Tudor Ambarus Reviewed-by: Krzysztof Kozlowski Acked-by: Ulf Hansson Reviewed-by: Abel Vesa Reviewed-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/20250117-qcom-ice-fix-dev-leak-v2-2-1ffa5b6884cb@linaro.org Signed-off-by: Bjorn Andersson diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index e3d39311fdc7..3fd898647237 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -1873,7 +1873,7 @@ static int sdhci_msm_ice_init(struct sdhci_msm_host *msm_host, if (!(cqhci_readl(cq_host, CQHCI_CAP) & CQHCI_CAP_CS)) return 0; - ice = of_qcom_ice_get(dev); + ice = devm_of_qcom_ice_get(dev); if (ice == ERR_PTR(-EOPNOTSUPP)) { dev_warn(dev, "Disabling inline encryption support\n"); ice = NULL;