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 7F307230D2B for ; Tue, 10 Dec 2024 09:14:45 +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=1733822085; cv=none; b=UStE8q6EMPOtHC9pkdojTJ1BtSi1FiSfT6P4Au6M2KFGtD9zDyDg10Ocwb+/q/oboLnkUWv4U0Zm/59sHy20+TYi3KAOVlUBYaeay3CEt7f0zJdnIF7wFN78C7EHnVoRh+h7NerARt+fuRBkF17L1Z0bmSg6IC4qRcBJAvW+qzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733822085; c=relaxed/simple; bh=9i1pKyxrS0bLnKDq7fNdGxwLjOvE381jhzfN9FXiDTc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=ZJbhsWMhLHizLZ0tiuPHBOkXuEHVGakG++YpUS7Jbzq4GV3y6jh5wVQ9L/V+tVmMwWJxq3lDzswwJKddL+TBwkkNN2JM7pLE+ju/7D4qMtLnkUQaC8OFNRX3xzroI7wGDN5XCjaii5DqZo1zLPPmjpJbFD0RWfAUbea4zXsUaBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PLnuR6wN; 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="PLnuR6wN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAE3CC4CED6; Tue, 10 Dec 2024 09:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733822085; bh=9i1pKyxrS0bLnKDq7fNdGxwLjOvE381jhzfN9FXiDTc=; h=Subject:To:Cc:From:Date:From; b=PLnuR6wNiDlBEjaTzadlbeqnIvkD2zPaMGFFWssCwPWmBa1gvvXl/9dIaQ+DorgbS sL2NTs2G9in3NayZXv/2E2aZJEAcovZ/E8SKg4QPerO10fijYdXxarwpl9y5jJo173 8UucXVmYeBjTEJ+H+LqIvCbf/FoziJUln/Wqy/Ls= Subject: FAILED: patch "[PATCH] scsi: ufs: pltfrm: Dellocate HBA during" failed to apply to 6.12-stable tree To: mani@kernel.org,beanhuo@micron.com,bvanassche@acm.org,manivannan.sadhasivam@linaro.org,martin.petersen@oracle.com,peter.wang@mediatek.com Cc: From: Date: Tue, 10 Dec 2024 10:14:04 +0100 Message-ID: <2024121004-fascism-vertigo-8523@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 897df60c16d54ad515a3d0887edab5c63da06d1f # git commit -s git send-email --to '' --in-reply-to '2024121004-fascism-vertigo-8523@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 897df60c16d54ad515a3d0887edab5c63da06d1f Mon Sep 17 00:00:00 2001 From: Manivannan Sadhasivam Date: Mon, 11 Nov 2024 23:18:34 +0530 Subject: [PATCH] scsi: ufs: pltfrm: Dellocate HBA during ufshcd_pltfrm_remove() This will ensure that the scsi host is cleaned up properly using scsi_host_dev_release(). Otherwise, it may lead to memory leaks. Cc: stable@vger.kernel.org # 4.4 Fixes: 03b1781aa978 ("[SCSI] ufs: Add Platform glue driver for ufshcd") Signed-off-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/20241111-ufs_bug_fix-v1-5-45ad8b62f02e@linaro.org Reviewed-by: Peter Wang Reviewed-by: Bean Huo Reviewed-by: Bart Van Assche Signed-off-by: Martin K. Petersen diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c index b8dadd0a2f4c..505572d4fa87 100644 --- a/drivers/ufs/host/ufshcd-pltfrm.c +++ b/drivers/ufs/host/ufshcd-pltfrm.c @@ -534,6 +534,7 @@ void ufshcd_pltfrm_remove(struct platform_device *pdev) pm_runtime_get_sync(&pdev->dev); ufshcd_remove(hba); + ufshcd_dealloc_host(hba); pm_runtime_disable(&pdev->dev); pm_runtime_put_noidle(&pdev->dev); }