Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2382000lqp; Sun, 24 Mar 2024 16:57:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmm/H31VetGlndtGWc3a77BJgSJWlwvDLTdQRthAlUbNGAWnZfEiYtG6HmwEnpa9se4Fdmr47hgr/UgrfsnpLOD8J2UVBmoAbUHJYZUw== X-Google-Smtp-Source: AGHT+IHKPQMerLGid4QWy1zmNpRgAmZCtq3EVYMtNH1m+OUL7CHa/kJ6+wTQs7+LKpEG2LcCUZc2 X-Received: by 2002:a17:903:1355:b0:1e0:917e:90b3 with SMTP id jl21-20020a170903135500b001e0917e90b3mr4760860plb.38.1711324656681; Sun, 24 Mar 2024 16:57:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711324656; cv=pass; d=google.com; s=arc-20160816; b=i8WTsPjMgBiShpew2dRJt4WKNqAq8x5Ujn747FcB1hO5CU90PwRZF8zq/0TAcWACp/ YG8JesB2odHtYLg2C3U4GHrGUVFDpgrO9f88u+gedEL7hef//tkMdjTuM68BzaOAJCQ4 +mppUxRH6Ta6dx1/ie8PleaLiSuHJJPNV8+hxZUNcoNqk9TLS76PqvmhggwqC+FRvCv0 T7zadplmqei4VtAy3s0wMWQW/Q7vkxRI0jjD0LR/Llw84NBb0OiOfoDBhIuoSsHgazKN a8e674N0v15ODwIdJbT0k79hs52FRJN3Zp3oZwBwESoi3r/66JUizY/zVvflFc7dwt04 Gn/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xmV20353ehhLtWepsSVjMyEIi3eLYW7y1iWbH16B2Qo=; fh=4RGyyjZTpuBUGR1TesKnLTwS9HCKIISg2vxTmZH992k=; b=Si6/9qy73L9X2DmJJQ2H7uEGsoFXZSAetIcTk0ljaVwHukz2YAIo9FRjhy4EdlJtV9 1T9kCd/t/mfCRnp1OOkUUfusruZysn0p+Ioa7GWZA6GfUxmT5pGdVNyOzqleMf9q3suB iONZQMAY5AVKORHSbOe676AaEg1LiyMRxhOy16Bm9VmG3aYGrQmbK/aUs2e/ya5jHPD+ FuPTIGYUZJSRSv6K01D7Je2qP2iZgbYW0YnftUojqGkd+iH33Cs4ekynoiUOGxMsN9Bo BdO1BjOC+jQKsClAMp9kmQ8TifFhOskYObDd3rp9GzNptxY5rbXBqGkKDWxmF0R2fMQM 9+5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=daOJDXd1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113247-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y11-20020a17090322cb00b001dcb306f032si4231650plg.118.2024.03.24.16.57.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113247-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=daOJDXd1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113247-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 02CC4285572 for ; Sun, 24 Mar 2024 23:53:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BFA018638D; Sun, 24 Mar 2024 22:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="daOJDXd1" 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 53C50186369; Sun, 24 Mar 2024 22:40:47 +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=1711320047; cv=none; b=l9FWXMq1WxodpiH7QNnsfAPk6gY6heTrWsqcIo4NcNEwuTcYgtYvTKkUJIsKMY20WEZsa63VfDKmmcXRtOI80vYj017W2dp7VaiW7/IzPP3Bxsz3TKfy1GDO4U30J7NlNndT1/ymUZuUdt3EXCvocdW7KieGJ8YsHldq64DtHro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320047; c=relaxed/simple; bh=xx4kwvzAxT8EfZAIHWdVzcLqTUvuj8Q6VMgCYvPhFCo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q9TXAYAWdzaDo1HRJKgCDd8Y5oK/AA7PK7wvJtmNSHnvqFNBZctXOCZw/pvXdAF66suU3ZknHd+t9U/KiPwmSECJxCOPTX9LixIw+XavsWxsKlbSEfYha8k6eMvfrSk11ZLmDo4eiUuLF/QwP+GmBFsuogJzRZh83UBOTyu3L1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=daOJDXd1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92386C43399; Sun, 24 Mar 2024 22:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320047; bh=xx4kwvzAxT8EfZAIHWdVzcLqTUvuj8Q6VMgCYvPhFCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=daOJDXd1iuIFaWsMejSfVa/IHTgpxF/5N+zjT6E20WQ2uWh2SCDQmRisy9n6FL+ae MSYoyXiJsS0NNOlETu3aZpV+tiOOi7AaQvMAvY+3ggMau8xgNqWBND4BjkjGxnsHej 3AMC2GcW972quryjLnUpzAG3s9VsdfnZtgsTflRNuIRnEqHUEo8F/fXnIcpgHyqEvW fbjxzl4crwdESLms9zqHi9K0fvqjcU5bj07gb/mtDWxQowrl7jP/OvYzad3dk4DgkV 3UwW1PfyHI2VE9OyxtxpKCSwBANA+lk1HOeadydH6O6XKYdxkRN2gYs6cG/aLej9Kv YGwKWHFBkUrwQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Thierry Reding , Sasha Levin Subject: [PATCH 6.8 356/715] drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe() Date: Sun, 24 Mar 2024 18:28:55 -0400 Message-ID: <20240324223455.1342824-357-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Christophe JAILLET [ Upstream commit 45c8034db47842b25a3ab6139d71e13b4e67b9b3 ] If clk_get_sys(..., "pll_d2_out0") fails, the clk_get_sys() call must be undone. Add the missing clk_put and a new 'put_pll_d_out0' label in the error handling path, and use it. Fixes: 0c921b6d4ba0 ("drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+") Signed-off-by: Christophe JAILLET Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/0182895ead4e4730426616b0d9995954c960b634.1693667005.git.christophe.jaillet@wanadoo.fr Signed-off-by: Sasha Levin --- drivers/gpu/drm/tegra/rgb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/rgb.c b/drivers/gpu/drm/tegra/rgb.c index 53c492b13d129..1e8ec50b759e4 100644 --- a/drivers/gpu/drm/tegra/rgb.c +++ b/drivers/gpu/drm/tegra/rgb.c @@ -254,7 +254,7 @@ int tegra_dc_rgb_probe(struct tegra_dc *dc) if (IS_ERR(rgb->pll_d2_out0)) { err = PTR_ERR(rgb->pll_d2_out0); dev_err(dc->dev, "failed to get pll_d2_out0: %d\n", err); - goto remove; + goto put_pll; } } @@ -262,6 +262,8 @@ int tegra_dc_rgb_probe(struct tegra_dc *dc) return 0; +put_pll: + clk_put(rgb->pll_d_out0); remove: tegra_output_remove(&rgb->output); return err; -- 2.43.0