Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3694548pxb; Mon, 24 Jan 2022 15:34:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ/mgKwOn3UOh00y8r2nz0O0qnAjS8KjfZP9RYgINa6a7AG6yU1kF6r4xZlkddBf8jABrx X-Received: by 2002:a05:6a00:240b:b0:4bc:ff85:4e0b with SMTP id z11-20020a056a00240b00b004bcff854e0bmr15882786pfh.85.1643067279556; Mon, 24 Jan 2022 15:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067279; cv=none; d=google.com; s=arc-20160816; b=lC+Ec8FuFRVPFjWMq3DKf94qrkP0Uorsaj+gusvPhFiKLHVMLX+SfF0+sh9dFeQkpc MEo+/hRHJKXTRzzKlxhTEThvLtyXpUXYJoB83Ujx9A/6IGh+sxK6W9qH4FHeJPC43Zg8 hHR7kgURMbwB1KvP2J8Ce7hWFPf5dp7NxLYTIdl2NTLAZHYgLjdIw/QzlWrwM9dbRM+5 UkY+2uEs5jVaFfCTfVx+PY45yglNz1jxv6GTBLb+Ez9j5/NAlwYd2gBSc4+qGRvToEnh zKaYuyMVXi+2i5QtGsMnbKirROYHW4yoME2VDog0gtkjYaUV4DBvH2fDMFHXmSuvL28d DGJQ== 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=rTb/82X+zc4B+nf9R7/1SioPcxw4wKiWz8asHSGLt9A=; b=I+6Af7i4NtI5cxzS9T0a8fapI5bLwj+WvkvHNs79GDoPmkz/Y5mW6MG9Z/e6EaUz8q Ohlzt1uGM3tblcYXn6yXtVbEZR7IwijjPrcXG5tg1O46CZ9aULKHZZIzvJI3+DIODAga 4LWdlz8e0Gy04OhMpeV2TysTM0sLKoZ6V2s/50qhXSJ/qcxwokZtqYcPAhSYjWyD6y5b Cwi/X+poFLlvi/r8L+1K5F6J39qN2XxbrofzUWcgvfH0doEE0Bw9qGBY3hw5U54PPV93 BnLSHc2sZ0WLx0oJuvkvlNnjR6tHALhx4/oC9XFNjycAMXtomRkzriI3kIfCQ5Gss/B5 pVrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1kcruNlr; 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 o3si13336969pll.580.2022.01.24.15.34.27; Mon, 24 Jan 2022 15:34:39 -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=1kcruNlr; 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 S1850572AbiAXXaQ (ORCPT + 99 others); Mon, 24 Jan 2022 18:30:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1581081AbiAXWLK (ORCPT ); Mon, 24 Jan 2022 17:11:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F4FC0DF2DE; Mon, 24 Jan 2022 12:43:22 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A4B6960915; Mon, 24 Jan 2022 20:43:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C705C340E5; Mon, 24 Jan 2022 20:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057001; bh=Vub3gPcbHXrEudD6mir+BV04nfHnrQJy1HXlwH2MdRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1kcruNlr/Nh8KAUYXI4D+FZg3R79N0fCPXLyrERO3th6BrnBzMm69L11D3C9gfW7P Ev0LxuTVzYBvdMLwuHNz2ThTAvbyiUn8ZIANSuB4jxCb9dKP82mFIxANRLN1LJwqUl hAD9wl1ZTiZTlcHQXKnt+tNALAa2OY+itn5lIwFk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiner Kallweit , Herbert Xu Subject: [PATCH 5.15 669/846] crypto: omap-aes - Fix broken pm_runtime_and_get() usage Date: Mon, 24 Jan 2022 19:43:06 +0100 Message-Id: <20220124184124.138162213@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: Heiner Kallweit commit c2aec59be093bd44627bc4f6bc67e4614a93a7b6 upstream. This fix is basically the same as 3d6b661330a7 ("crypto: stm32 - Revert broken pm_runtime_resume_and_get changes"), just for the omap driver. If the return value isn't used, then pm_runtime_get_sync() has to be used for ensuring that the usage count is balanced. Fixes: 1f34cc4a8da3 ("crypto: omap-aes - Fix PM reference leak on omap-aes.c") Cc: stable@vger.kernel.org Signed-off-by: Heiner Kallweit Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/omap-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -1302,7 +1302,7 @@ static int omap_aes_suspend(struct devic static int omap_aes_resume(struct device *dev) { - pm_runtime_resume_and_get(dev); + pm_runtime_get_sync(dev); return 0; } #endif