Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3588679pxb; Mon, 24 Jan 2022 12:57:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbHfbfW7qkepFKBOiH+jvH5wvNqzAgsdYtRQnH16QOIudsowCgw7oGtf5YXYNa6AUlCTAd X-Received: by 2002:a17:902:6ac1:b0:149:7087:7b8a with SMTP id i1-20020a1709026ac100b0014970877b8amr16462657plt.174.1643057834627; Mon, 24 Jan 2022 12:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057834; cv=none; d=google.com; s=arc-20160816; b=s3qKEISHZeifeAGPCcdgKNgmO79wtoeYKoiVh6sky9IJZE/c6y7puTcu5OaOzMJsm6 0ewa5Vbwv2vv73nKsKfhQiMxG1Ja24FxaIgQKnwKT4MkphT/qnmzprpn2auQd9ruPK6S A4R2Dwme5dS/EB5x3zGN4gfuqslSpWM1BMvATN2xCjMuyxKbbJeUmpeI9zbWTYfk+ArN Bk1cUdDduoiN8fW0JOuNVv/vFMsVzUeYIDTNHI95zsAp0AlX5xmvXQHdjRtd+pNnrk4Q uTiqkcP4QCbEeE1UY0NXK16FpBgcceZK7LrGS/G6DawajT6eC703mYwsO5SR4f/clZjS 7x0Q== 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=v0OWvAXFUrK6MvNEFUKGagWdfcPUR6Uv8N9QRIoLARM=; b=GOjitOc8yibKZXf4yE7eDR1vf3HRU6I9nk9riT0v+xwETb9TooDABYyQpZiHTDyRcz b55ZZaOuTYjBYhJX3qjFcNql5whFkjlJNFvuUM9EqXrPIeOs/6UUG/w63pEnesQtXuqe fdf8EyBcjUxcPI0l0271u/JhjImAmZsYjkhnwfSmdvXE/+gDe1hVufpl9MES42MtrAoM XjzFRo18+hliqTxWlc8pWjw4yX+TSqSCPlID3bfBD/EvzfwbZsoIncNJSKpsQ5He2Avz e1bOrt+tx/DtE8S7YxHpXlpA5sOR1YGmLRRfP7RuQN6q5R2bPRyBH+uQeHJ7iaxjm//A xVzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zEM0u6kR; 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 t70si6632923pgd.800.2022.01.24.12.57.02; Mon, 24 Jan 2022 12:57:14 -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=zEM0u6kR; 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 S1349915AbiAXURE (ORCPT + 99 others); Mon, 24 Jan 2022 15:17:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359784AbiAXUAL (ORCPT ); Mon, 24 Jan 2022 15:00:11 -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 81EE8C055A87; Mon, 24 Jan 2022 11:28:25 -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 4050FB8121B; Mon, 24 Jan 2022 19:28:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F353C340E5; Mon, 24 Jan 2022 19:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052503; bh=d9OmUHPKQrZ6Natp9JukyqTsw+yMgXrciAtgaRtw1yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zEM0u6kRT1DHFNCejlgqNV54VPrPlb9P8OqADzV2ci4FVMwqzxsMSTRj8IoZXFPxJ eTLubtEwCzl77r3AfdVfaNhBSq0efKlkecnKuQkDZJIpAIGwOmMORZTtobBMZ7zR7j DJvMZyKNC4G2+zMaqVP1qaafzPsPoSUxFNVv0hSM= 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.4 080/320] crypto: stm32/cryp - fix double pm exit Date: Mon, 24 Jan 2022 19:41:04 +0100 Message-Id: <20220124183956.457673340@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 92472a48c0454..c41e66211c5b4 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -2034,8 +2034,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