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 56C868494 for ; Thu, 5 Jan 2023 13:04:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAF2CC433F1; Thu, 5 Jan 2023 13:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672923852; bh=UyMmRxvu9BLRu7EOtLW0cQSiTBmf/zeqWj7fPsR58kQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dekRnK+o0z2XsKZiqnY6b9wsLlygl/PnC19Y4qtgip1U6LcGRl9epDqxjcb+hHbHc wBuV7inxlpTr3ii3sSjcbIGUT487y6fxuUWAQQEwyZtU+Sw0dOfJvQS9ziDIcliLbc a1A/6dlWG0LnJYHFDkm98W9Uu5oYj7cK+ikNfZrg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yang Yingliang , Sebastian Reichel , Sasha Levin Subject: [PATCH 4.9 153/251] HSI: omap_ssi_core: fix unbalanced pm_runtime_disable() Date: Thu, 5 Jan 2023 13:54:50 +0100 Message-Id: <20230105125341.823215595@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230105125334.727282894@linuxfoundation.org> References: <20230105125334.727282894@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Yang Yingliang [ Upstream commit f5181c35ed7ba0ceb6e42872aad1334d994b0175 ] In error label 'out1' path in ssi_probe(), the pm_runtime_enable() has not been called yet, so pm_runtime_disable() is not needed. Fixes: b209e047bc74 ("HSI: Introduce OMAP SSI driver") Signed-off-by: Yang Yingliang Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/hsi/controllers/omap_ssi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hsi/controllers/omap_ssi_core.c b/drivers/hsi/controllers/omap_ssi_core.c index 56de30c25063..db9328c05492 100644 --- a/drivers/hsi/controllers/omap_ssi_core.c +++ b/drivers/hsi/controllers/omap_ssi_core.c @@ -574,9 +574,9 @@ static int ssi_probe(struct platform_device *pd) device_for_each_child(&pd->dev, NULL, ssi_remove_ports); out2: ssi_remove_controller(ssi); + pm_runtime_disable(&pd->dev); out1: platform_set_drvdata(pd, NULL); - pm_runtime_disable(&pd->dev); return err; } -- 2.35.1