Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp690425pxb; Tue, 5 Apr 2022 18:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjwy1NJ6DUpP4pvo0Xulz91okKKUkk8ncprz8VBngfdyUbCSUYq5uHBUIRPuGOO+tsdZi+ X-Received: by 2002:a63:680a:0:b0:383:dd15:fe68 with SMTP id d10-20020a63680a000000b00383dd15fe68mr5216632pgc.467.1649210184881; Tue, 05 Apr 2022 18:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649210184; cv=none; d=google.com; s=arc-20160816; b=euU5LHfSWwrGTHUiA+iVB2v1XN3RblhEPXsCjlZPbnMJRDey4EFiCH/7FSlaKB2tzv 0kpAD7Leq/3L3wXEK5Dcxa6w0XpEGV8q9DEAGVpKz8Ob0neWRhhrehFEseW7dTk9nPk2 /OCvuwrq004bG5i7m3VbRvb1ZqL0yH+LYdr6oo/V/jFB+6VVMHxdeSVuqakf0+u5a8q8 2QKSZSfcndlclTmSJwalu/LHCInzTC7pOvr7r25zeReYqLldTtFSPAjOxyyyzJbajkNn Bvtn7Ui0/Pcpxkx2LG3b4CYL9dO7ZJ+3T29Lnr1iE1W2Jyp7/BDopBy8J9Z7ByW71v9C KKFw== 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=fODbFj9i1XFq70Lz3v24mqJtBLNH91bAQjU43VLAZCG/05r7DHZzhi8o5P30/CdtGB /cR5Fo2ieUPSU2DIzdCRtEgNS7OYh5d3YVHf272U50zHuRm1mwQSHsvytsyZffbw18mh p70LVU6ydA7DOq0bC6/gBI380wqGDLu5q4CW0zPyBl82c2hYRWm203+8NhD3ZWVE8KsB Wvy3DsPgut8GNuJFgAvC12JyIek06u6DO2+HhqpJ6NnGCXOQeiSb54NqB7DrrzcxR7xF bTuJrpeO6UnxPHKoN55N/DQ+i6sF6PgR/Wn8dHQvu74p/tRSYgqF5soNYh4HwT99QtCt Tcxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MX7BjxE3; 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 w8-20020a056a0014c800b004fa3a8dff90si15866057pfu.71.2022.04.05.18.56.10; Tue, 05 Apr 2022 18:56:24 -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=MX7BjxE3; 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 S233496AbiDEIHu (ORCPT + 99 others); Tue, 5 Apr 2022 04:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232674AbiDEHyF (ORCPT ); Tue, 5 Apr 2022 03:54:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D55237E4; Tue, 5 Apr 2022 00:49:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 4B500B81B90; Tue, 5 Apr 2022 07:49:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97923C340EE; Tue, 5 Apr 2022 07:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649144981; bh=aR1A0SezXpkQGZdReRE0MJZ9Tozm4kPC8Waf9Ta+wng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MX7BjxE3qmDcISVQKKIcQbWKlMX1mgoTRaE/bF/TZiEPTrLsLUosMYnH8Xk9qWUpZ GpPhhAlRm6hkYsM1MwGTwW/y81LZIAsMgbQPVDLC7nq/R6uSrZKG6iD63wh75dfll5 rNFlrQph5HEly9rM3icAKtJ0H693QaPvcd5aUYuQ= 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.17 0241/1126] hwrng: atmel - disable trng on failure path Date: Tue, 5 Apr 2022 09:16:28 +0200 Message-Id: <20220405070414.681424377@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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