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 AA1E820B1FC for ; Fri, 18 Apr 2025 10:53:41 +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=1744973621; cv=none; b=m/hriSkKabfdHYKZw35JUYqfAd/aDlk1qDtX8lUaWh0JHvvWfUpQSVwNwfo6/+WfVV73T4Zvmb6arpKg7snfwpCgKD4O4b+YYMzqyNt3865rwwLcFCNclcDDXdJ6dTQBy9k4xdY9opz2P/TwsBrDtJjLCUquLWaW5GogaZ2LdE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744973621; c=relaxed/simple; bh=jbs78yZAYHd7lEJrXNTf6QYWjkwjQ4C5OxPq4GSfsEw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=VD2RDyjHs75L9Ltu+mfifBWfGXq2blDYtssfhAcP4eS9UHGje0QkW5+36Bkd75lt3Vv+AxOEw7YFpewz4xshzjIW9G6GSvWv7rpb8WRpUKwYNAtDGXtyiAFSNT9NKf4B7Z15/qm4rtzwMKiZwk/M24pv+srsP/Jrw/omt0XZh0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v37oT38b; 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="v37oT38b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0FD8C4CEE2; Fri, 18 Apr 2025 10:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744973621; bh=jbs78yZAYHd7lEJrXNTf6QYWjkwjQ4C5OxPq4GSfsEw=; h=Subject:To:Cc:From:Date:From; b=v37oT38bME6/k8q7oOrb4wUZxFkfmq5TvWnmyyK/mPh7cMW6F2QchcUxuLMSZmU5i ABjLaZWMQUSCyrjKReggasmMfLWn/oTiwQdK8W+R+cQClXNZ1OCK/yz4aUQfaPAJVy PYlATe6fhfOfMis0fsodpbjdF3DYukMb1l60mMVM= Subject: FAILED: patch "[PATCH] scsi: ufs: qcom: 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,martin.petersen@oracle.com Cc: From: Date: Fri, 18 Apr 2025 12:53:38 +0200 Message-ID: <2025041838-sandbag-violation-167f@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 ded40f32b55f7f2f4ed9627dd3c37a1fe89ed8c6 # git commit -s git send-email --to '' --in-reply-to '2025041838-sandbag-violation-167f@gregkh' --subject-prefix 'PATCH 6.14.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ded40f32b55f7f2f4ed9627dd3c37a1fe89ed8c6 Mon Sep 17 00:00:00 2001 From: Tudor Ambarus Date: Fri, 17 Jan 2025 14:18:52 +0000 Subject: [PATCH] scsi: ufs: qcom: 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: 56541c7c4468 ("scsi: ufs: ufs-qcom: Switch to the new ICE API") Cc: stable@vger.kernel.org Signed-off-by: Tudor Ambarus Reviewed-by: Krzysztof Kozlowski Reviewed-by: Abel Vesa Acked-by: Martin K. Petersen # SCSI Reviewed-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/20250117-qcom-ice-fix-dev-leak-v2-3-1ffa5b6884cb@linaro.org Signed-off-by: Bjorn Andersson diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 23b9f6efa047..a455a95f65fc 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -125,7 +125,7 @@ static int ufs_qcom_ice_init(struct ufs_qcom_host *host) int err; int i; - 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;