Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3654049pxb; Mon, 24 Jan 2022 14:32:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxI/HI3omaHrFU8l0UIKf4K9rEvt+zI/v2Rm8IUenz6Jh5yhWUUAStJxBGajDFUkeqkMdsU X-Received: by 2002:a17:90a:c682:: with SMTP id n2mr351797pjt.177.1643063521804; Mon, 24 Jan 2022 14:32:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063521; cv=none; d=google.com; s=arc-20160816; b=jpNy9dqkQmopHf8/fO3hiHonkRvrRxhSfcPkmsTs/0XcINK9nvKfqgO2sGG3xnDqqj dQVy/bXoFQBoBJmJmxNg1rxBo6ltIiwD2ikJG5zfthdjxuM4Z9nlnNPek9jDLCtjP2Sl tzdv5rzgacNThikmRlykJroM/A1w+wn5MmEtTLeYgAjgJTfNX4jjjPc39hCCUBJnuViQ MKHm9eB/DTWV6GlxgR2zJ90uP4W0jcVIjjn9K+W5ER8OEy3mF05kO769ATTX5kiWt4Sm 84gf6f5h45FjDh2xyq6ECMV7A49U/fytDnfPDoTSg3ENzLavxpuQEDhU2U+qWUyrot6/ rPNg== 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=fUZN6ckglKoVFIdH05IVp+IMCiWkz0+HfVslso7rsgY=; b=kBVx+awWYU2Q/YSiobahkh9voW9FuM9niVMbE7GnNxUlEAe+H/5PWOl/7J/kPRc9ZQ 9cqGzU1yjh87bNM7VwqoJ/AZ/+Q8ErfIYepuOpkJURMpn9zVXpIBKaEIYGo0FUNm4fE2 Q1oIWIq8WRvxpH3MkwZORahPIoNiBlH5c2UncKpVEXyy6h4S+p099DvCiSSSHkiJlb8B CpXTAtrIuL0LJFsWUYDVw/ltSnwGIhxzVKfsFqth6clOQ9w1pPKehqhSY+SWU8cBKR8o xicv6uNYoW41LL+zT+pnfhCXLFdTGhiKpIo3tIJlz0z/ma2RcY5BKKJN1zAbylcttgMq Rb4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HXPpyzJ9; 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 o23si496561pjt.117.2022.01.24.14.31.49; Mon, 24 Jan 2022 14:32:01 -0800 (PST) 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=HXPpyzJ9; 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 S1587443AbiAXW2W (ORCPT + 99 others); Mon, 24 Jan 2022 17:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1454658AbiAXVdT (ORCPT ); Mon, 24 Jan 2022 16:33:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AADACC07597E; Mon, 24 Jan 2022 12:21:31 -0800 (PST) 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 28A15B810BD; Mon, 24 Jan 2022 20:21:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E284C340E5; Mon, 24 Jan 2022 20:21:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055688; bh=SW3LaOTkedTk7adcIdVcisEywFdafNAxlRBLboYCbE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HXPpyzJ9mywxfMFGO6nV8jmT85jAL4BXrzpeokYkCW4EQxWo3iGB7b4E7e3U/E9pV N6DwnoLAo1VJmnWXCeHKLWbSZT8+4DKtej6eFrKuz3vd00/mSMei2Ju3pB7NlH1lwp 2HOckG9r4oB2pbVd+aSoWRm0keRaWZefZc7i/hFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Vasut , Nicolas Toromanoff , Herbert Xu , Sasha Levin Subject: [PATCH 5.15 234/846] crypto: stm32/cryp - fix double pm exit Date: Mon, 24 Jan 2022 19:35:51 +0100 Message-Id: <20220124184109.003431232@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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: Nicolas Toromanoff [ Upstream commit 6c12e742785bf9333faf60bfb96575bdd763448e ] Delete extraneous lines in probe error handling code: pm was disabled twice. Fixes: 65f9aa36ee47 ("crypto: stm32/cryp - Add power management support") Reported-by: Marek Vasut Signed-off-by: Nicolas Toromanoff Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/stm32/stm32-cryp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c index fd7fb73a4d450..061db567908ae 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -2134,8 +2134,6 @@ err_engine1: list_del(&cryp->list); spin_unlock(&cryp_list.lock); - pm_runtime_disable(dev); - pm_runtime_put_noidle(dev); pm_runtime_disable(dev); pm_runtime_put_noidle(dev); -- 2.34.1