Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp637211pxb; Tue, 5 Apr 2022 16:50:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHPA9zELPa6hjamVMi9PMmeMh1mttQ6rpcmWM7pEYRFzYz0ONP+2CbXx5gCVD6j0p+sEPZ X-Received: by 2002:a17:902:d2c8:b0:154:2b02:a499 with SMTP id n8-20020a170902d2c800b001542b02a499mr5700834plc.168.1649202623192; Tue, 05 Apr 2022 16:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649202623; cv=none; d=google.com; s=arc-20160816; b=f6Pa8NS7CCZnM4gZvr+VLy4xXVh0nCQhM3CU1G0ga4h0QL1+IUBlC5m49TXS5NcJIP A1BybffPuaHc9715QFuYLEKSAXulnBWAnOj8353advkINFIHVESLYchMAU9udyueQTcp roGH2L3ulGVaibHtm2WYsoRu11rpuDTls0KaQPzB5EevK+xHY3EC8f1b40Ex6Z32lxqr Vd9ZA2uwzrAV91iP+j82LZwfrl7l4zOCRmdImgSR/Ccb2VAuzzLKmqGKSjsa1MzsyLpG CfH4ziF+HGO692IOIXClyH4A6A143N1MkzU1/QOT5o0UV0zV2LUHJiiYmqHij7eKBsJB NJOA== 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=uBVZXDwwbQsU17gHTRBzVvkyH5B+/GtXkOqD31Ek55Y=; b=b8W2UiPxiZc2MkIi58YpdCNYzlTszLJ98iXon5Lcprcp0MqnYTqGvMGhl2YF9tsxNQ +9o5jZZegFg6OqWclc3EkrAZppLdOzo3MSW9Fv2uBfxmx+DYFDM0ERpSQBxW5UDaEo4R wvX/gKYGCDPG4oKArhii1hTUW0iRdpYRVHHXWGyWpGPMYi5+MbcHIfR+BbzNdz/D7OMU 5dKdNnvPDGW67QeZRo42wVaw8HkEs/k8pSniKyBfN4jhddfvQ/Ufm1dvjRE+50UIjwg3 1Z913zC0sAWOyPuVjpPq2gd42MoSiq6TT7cTpjYpcpNxr/P2MmmAyCisJOV0EvHOsWTl OQnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linuxfoundation.org header.s=korg header.b=SWSbRRD7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a31-20020a634d1f000000b003816043f10bsi6686900pgb.768.2022.04.05.16.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:50:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@linuxfoundation.org header.s=korg header.b=SWSbRRD7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE2CC128672; Tue, 5 Apr 2022 16:34:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389666AbiDEOpX (ORCPT + 99 others); Tue, 5 Apr 2022 10:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244331AbiDEJlO (ORCPT ); Tue, 5 Apr 2022 05:41:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF15BB0B3; Tue, 5 Apr 2022 02:26:10 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D00F061680; Tue, 5 Apr 2022 09:26:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC31AC385A3; Tue, 5 Apr 2022 09:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150769; bh=/LOOwWxADR70oUQ6lKCBYnij1x7THp3OofmlkedM3f8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SWSbRRD7zRFAnI7gvnS+CrCo2K+Sxfhzt2Oj8+WkvHHViSNA5+6x53ndXN/cRu0F0 I0qVeMZx32j0yVHy4B1oS1PnIkgRsMCS5Y7cG1/nDWA+NBmqhv4kCc0pLMz8XUMcz1 qA7dR3fjKRd3uQe7MJj8qjRanwsamo+ZOVowZERQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Lad, Prabhakar" , Johan Hovold , Hans Verkuil , Mauro Carvalho Chehab , Lad@vger.kernel.org Subject: [PATCH 5.15 167/913] media: davinci: vpif: fix unbalanced runtime PM get Date: Tue, 5 Apr 2022 09:20:29 +0200 Message-Id: <20220405070344.853322187@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Johan Hovold commit 4a321de239213300a714fa0353a5f1272d381a44 upstream. Make sure to balance the runtime PM usage counter on driver unbind. Fixes: 407ccc65bfd2 ("[media] davinci: vpif: add pm_runtime support") Cc: stable@vger.kernel.org # 3.9 Cc: Lad, Prabhakar Signed-off-by: Johan Hovold Reviewed-by: Lad Prabhakar Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/davinci/vpif.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/media/platform/davinci/vpif.c +++ b/drivers/media/platform/davinci/vpif.c @@ -496,6 +496,7 @@ static int vpif_probe(struct platform_de static int vpif_remove(struct platform_device *pdev) { + pm_runtime_put(&pdev->dev); pm_runtime_disable(&pdev->dev); return 0; }