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 79BFD17B421; Wed, 2 Oct 2024 13:50:21 +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=1727877021; cv=none; b=Qe3mPHoJMrVYf4rhKwUPMKzH3yw4FejAH9Y4cA1ibXSbpldfQUwJKkwKyIkBCgF1vqICKXhuwPUXLGvEclBgteUAeqAxO7wMC/f57jyXy47Ykjr1cIJP8XLAHob/YhhIZJM+cq1Zta6V4eXij6lw8uhq0YHCu6djx0kIBSE3LsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727877021; c=relaxed/simple; bh=IqD3hnLiY7NMifP+WbubPYGFjExGvbac/SCBdEeGo2U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C6uqQRFJ2l2R1Dyasm7JXZXFg896FPXJkNZigcLfzIjKpiaUAFDap612oQpLKShU5pzAASOSZkXNaN7GMzIIxS8mNTL1bA6ObbwfS8rlcsk/AAaxE4FmQ9hH7i/hyzTFlFyuClRwwoNiSNgftUphpCVXa06Q56DlzisOsMNHl34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iwGVuV0A; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iwGVuV0A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFB60C4CED3; Wed, 2 Oct 2024 13:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727877021; bh=IqD3hnLiY7NMifP+WbubPYGFjExGvbac/SCBdEeGo2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iwGVuV0ANz2oo8wW88cgh13VMiLArSHq6WYTbCdOGnqR2xupA/2DnRwzR0SaxtJq3 t6VHHJttbiMtxWlPJVsgUVBuof5OdrTl902cbCByzOe3N7rwKyFWzIazynEL4cQAWJ WNSaNYFC9ULzb12SAsisw85jYsCA6rTZuMm64JgU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gaosheng Cui , Herbert Xu Subject: [PATCH 6.11 638/695] hwrng: cctrng - Add missing clk_disable_unprepare in cctrng_resume Date: Wed, 2 Oct 2024 15:00:36 +0200 Message-ID: <20241002125847.985855689@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125822.467776898@linuxfoundation.org> References: <20241002125822.467776898@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gaosheng Cui commit 4b7acc85de14ee8a2236f54445dc635d47eceac0 upstream. Add the missing clk_disable_unprepare() before return in cctrng_resume(). Fixes: a583ed310bb6 ("hwrng: cctrng - introduce Arm CryptoCell driver") Cc: Signed-off-by: Gaosheng Cui Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/char/hw_random/cctrng.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/char/hw_random/cctrng.c +++ b/drivers/char/hw_random/cctrng.c @@ -622,6 +622,7 @@ static int __maybe_unused cctrng_resume( /* wait for Cryptocell reset completion */ if (!cctrng_wait_for_reset_completion(drvdata)) { dev_err(dev, "Cryptocell reset not completed"); + clk_disable_unprepare(drvdata->clk); return -EBUSY; }