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 459582676C8 for ; Tue, 8 Apr 2025 10:36:18 +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=1744108580; cv=none; b=X8nkAHkj0IlxtF6AgdKWVuXa1ncqxURegNZx/ACJ3XHyCDYiP+kRFbGgOwl4cdF56EDhuAbOsKBIH2NlDrBOwhNSoMk25aQOcaHb4MWysiC7eEXIfaQchr6e14eGNMhU7EYQ9wxbCgiSih5zzaGOI5iq0MUKN02yUtV2bbAoWu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744108580; c=relaxed/simple; bh=Rla7lFo50TGxYtPluic7S4kb8SbWhL4Lt6dhLu1lT98=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=uWt03e5mYT6MMNJi9q5asQWnN4swrJP+X73zcblQ8Pv00xxjp4R8Gc/0pXpe/BuVckIBGrirufEe6RLG5S1RltB3GXgzz3KlnQGIKqTAynIVPCIFKiPR6f1QzzHGSh8bOWi0UdX3FMAbkxTx11CCnd2AjY/bdJQGP86Lyipio8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zPPGI56i; 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="zPPGI56i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D863C4CEE8; Tue, 8 Apr 2025 10:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744108578; bh=Rla7lFo50TGxYtPluic7S4kb8SbWhL4Lt6dhLu1lT98=; h=Subject:To:Cc:From:Date:From; b=zPPGI56iTBi1jJ6BXREjH10fPh8D0WBc8nMR5pwYA3visjW3aeOk1zuVuxB/KhAkq d71US812CDWTpFK+V/rq+V6b/Mkj10kFPqM90Lt6sXnUpSjxx3qNDGKIGTjBx91HZr xyc3LIviepW4h7xFnSfbTrjIOQBDvMZ5WLEI8cnI= Subject: FAILED: patch "[PATCH] mmc: sdhci-msm: fix dev reference leaked through" failed to apply to 6.14-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:45 +0200 Message-ID: <2025040845-carving-viscous-42cf@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.14-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.14.y git checkout FETCH_HEAD git cherry-pick -x cbef7442fba510b7eb229dcc9f39d3dde4a159a4 # git commit -s git send-email --to '' --in-reply-to '2025040845-carving-viscous-42cf@gregkh' --subject-prefix 'PATCH 6.14.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;