Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp676503pxb; Tue, 5 Apr 2022 18:20:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE+SISY/ULFjrY8ebnoylYV5bgSGtOLAZrQzP/xu+ToxADdJKTWbGwOf5jG9D+WVphdDNY X-Received: by 2002:a05:6402:2318:b0:413:7645:fa51 with SMTP id l24-20020a056402231800b004137645fa51mr6366865eda.201.1649208021893; Tue, 05 Apr 2022 18:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649208021; cv=none; d=google.com; s=arc-20160816; b=t1x76CkGFNoNDK6P9+oz3oPOWjs3KouqCVhR+KQbE1CXws/3/H4u8eTJ2a4pCt7bqy M2RIvmNMqGo1mUfeCrFBYX9g7B8lsKiP0HxH142u+IFun46gWCk4BnmIewdnyye12IRs CS1r15lZL4A4Jhagmx82R//tHw+6TsuHZI/I+UPU1WK60gLFsW5w9B5NyTBlLkTYoR0W FmV3fwpe0hUqEepu1c9yxkfFpQLBAwgYDANPGTIklficDSpXKmOv1VcqwLwdfT6rd5Vw pP1zv59If6Sji8mPFibekaNlk8NsW36C2ztUjB+k3na6LLkh2cqNga89oj39n3VRxV8f XQgg== 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=3C0MthkEk6n/3h14wWg0eLdjQurTh04/mYWpps3GWZ0=; b=lAUXdGawPLw5bnQmQaN4p+ACrzu6vXOBZ0mg9eGZze0KhB+Ks48SyPecUt8mX1r21H N0l4h37TZ8V58fiW6gGM+qXmguwiDOUQklsBdmwcjbgyZgvSpyKbYqFNTruTZljXVohW xjIKrAfYQKLUPXin/cmy8GMUlOfsL3DcQgNf9/vKhsdFjHLf0dGQS0FBj1xPc/akZ0V4 qLvvvWQJK+SnBRkilyR2CGsyIyYPj9+N2F/SrGcP92KeKqLPtgYe+cmEZV8VNvSFpUSg D2/z9jJ6TKA6L1OKSlc/iDwUQUv1w61dWNU0B+2C90YJibDnxQy0BsvmjHYB9B5rkfTd CbZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CF1eeraY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a17090609b200b006e0a149acadsi10269600eje.795.2022.04.05.18.19.43; Tue, 05 Apr 2022 18:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CF1eeraY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234239AbiDEPBC (ORCPT + 99 others); Tue, 5 Apr 2022 11:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345015AbiDEJmy (ORCPT ); Tue, 5 Apr 2022 05:42:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71A59BF955; Tue, 5 Apr 2022 02:28:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 834916165C; Tue, 5 Apr 2022 09:28:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91C06C385A0; Tue, 5 Apr 2022 09:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150899; bh=aR1A0SezXpkQGZdReRE0MJZ9Tozm4kPC8Waf9Ta+wng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CF1eeraYthcXV0kKjaKBKQ5FfVpx3Z/c6EcFEmvCRl8u4FyJSrq/n90nAxiOun93g E0LOKJtf/YEnlzSa7yn23vVjSD14oA+Dxa4ksXCas+FekVcB30QWXaI/x6y1QNpQbr E/2umvXhqmDR2ujDleZXZiKQcL3u1k7NxkCaJ6dU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Herbert Xu , Sasha Levin Subject: [PATCH 5.15 222/913] hwrng: atmel - disable trng on failure path Date: Tue, 5 Apr 2022 09:21:24 +0200 Message-Id: <20220405070346.512201057@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Beznea [ Upstream commit a223ea9f89ab960eb254ba78429efd42eaf845eb ] Call atmel_trng_disable() on failure path of probe. Fixes: a1fa98d8116f ("hwrng: atmel - disable TRNG during suspend") Signed-off-by: Claudiu Beznea Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/char/hw_random/atmel-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index ecb71c4317a5..8cf0ef501341 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c @@ -114,6 +114,7 @@ static int atmel_trng_probe(struct platform_device *pdev) err_register: clk_disable_unprepare(trng->clk); + atmel_trng_disable(trng); return ret; } -- 2.34.1