Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1717743pxb; Fri, 24 Sep 2021 10:18:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT5xTlhkNELg55YYKmw7G6SR1pWoYJn+sGWl/1QLY0qnhydflkRDMslXb0vp75PGyNfqR7 X-Received: by 2002:a05:6e02:1c81:: with SMTP id w1mr9201229ill.112.1632503925304; Fri, 24 Sep 2021 10:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632503925; cv=none; d=google.com; s=arc-20160816; b=K6H4T4HA9OcnOSfabuGy+QSeHtipA1jJ+mGN+9Hq54sdHLmBpUav3IrAjaCFv6GZVk 4wBIHGQdBMWQS3jBwIB5C0N7daH/+fI+u64wxLzlTVHycXLJN2E0evsRtAEm3t9PByIN uOeSnJLGIoOLKkIY1PsRAyOTyr1D7BQTeLa5zta4gYUo7Od/GJrTHPiB+wp28DYABJK1 LUzzP9d+mIamnAwvwSPwnVVyXCSTTNPywTH+PSBLR9yz4Oe1kW6x9LBw1VddtjsbSjTv +l4iPqCrU9h/CvF16JdldMceprBHxKagOexaQCDrC+TgOLAEkKu/gh1dnkMMoI+ptxOb xU6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Qzigt0KBxxGsTiXphroN63k0M991Cb4xT8JU+SvnIek=; b=pJlb230hwqGSYq6iV4/wIcYxclTdpCxemZxcuJHavc9wAdBQt3xrXXGUWwJwjlYDKt CcK+JMmsUFbug3/IQzyhu6k4GH33x2wmhmQQPuj7E5kLkaP/E2aKwcUfs6deVxBKEVVE akEkwohwnXEiyPy7E713iMHy6jnUuM7mhEWrsWtjpw1UNnoroz4rCH4RD5wf+c3gLkJB Yly7NxsaZSzXpWOR+VYJ/Hesr12CKjVAA3vF9OVLwEeZCbDTLvqIzQMasJRNdvt/peBn K01juFiGu2K3ZWB5OxnIgqzEC+qP6H0MPDGWnx9s+LbCiIXZoXHPjRpyY08LZ28MKZA5 6o2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oz7lLgbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si13891560jad.72.2021.09.24.10.18.33; Fri, 24 Sep 2021 10:18:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oz7lLgbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344498AbhIXMvk (ORCPT + 99 others); Fri, 24 Sep 2021 08:51:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:45114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344195AbhIXMuL (ORCPT ); Fri, 24 Sep 2021 08:50:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 658BD6125F; Fri, 24 Sep 2021 12:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632487690; bh=rWGKVMC+2ukUsNxRooA4SiDUvwkbBeqvnEmQzGS5l08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oz7lLgbrd5eKH3R5TotIT77Eh3tARgd2LsmQprh+e8T+I7ep3hqF0a5hwmedbvrpV OxMXDOc8C9+hZYLAf6ijuhoKEG1zpahbAxfCrYjAvAQK69dTcZTPHY+TQw5h2oZ0F8 pHkTfRl1Qiv4yL8O5dm6GvSiUUM3mi/QAHA2dzsk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Krzysztof Kozlowski , Daniel Lezcano Subject: [PATCH 4.19 10/34] thermal/drivers/exynos: Fix an error code in exynos_tmu_probe() Date: Fri, 24 Sep 2021 14:44:04 +0200 Message-Id: <20210924124330.302504706@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124329.965218583@linuxfoundation.org> References: <20210924124329.965218583@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter commit 02d438f62c05f0d055ceeedf12a2f8796b258c08 upstream. This error path return success but it should propagate the negative error code from devm_clk_get(). Fixes: 6c247393cfdd ("thermal: exynos: Add TMU support for Exynos7 SoC") Signed-off-by: Dan Carpenter Reviewed-by: Krzysztof Kozlowski Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210810084413.GA23810@kili Signed-off-by: Greg Kroah-Hartman --- drivers/thermal/samsung/exynos_tmu.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -1084,6 +1084,7 @@ static int exynos_tmu_probe(struct platf data->sclk = devm_clk_get(&pdev->dev, "tmu_sclk"); if (IS_ERR(data->sclk)) { dev_err(&pdev->dev, "Failed to get sclk\n"); + ret = PTR_ERR(data->sclk); goto err_clk; } else { ret = clk_prepare_enable(data->sclk);