Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp750766pxb; Tue, 5 Apr 2022 21:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoPXn4D7Dg/L36tjU49daUhXcl7mgv1vWUUbrtuPiXCUUvLtm6NC3lzmg6s9DBE9m7ETTy X-Received: by 2002:a63:3241:0:b0:398:cdd4:3305 with SMTP id y62-20020a633241000000b00398cdd43305mr5560117pgy.543.1649220213238; Tue, 05 Apr 2022 21:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649220213; cv=none; d=google.com; s=arc-20160816; b=IJ/rbbpJwhWqbWqXRj7NpOhTs9M2epjsCKyufpI4GnstZQoDcaaJV/Y8J5RsIg91Uv m1IC8f/DkuN+YKiUkr3j6L08YKcPZ0EEDjOwCJnrOhpX9hsVM0z+tOJKsd5W3C5zldUw YiplZkdTNxGDhmJPcmqhRVbdZGqUlJdAqHOlFka7+yMxnxsItAJ8LzLa0gBdr49bpsOA FDGRLfjhBDu3Q95zQv97gnC64paj4iUg/iB2Yvkzu2xPVIQ+cw5p5L2rdH3t3bSR5P7q 3x31BCd+fR2V0Fk0NmBk4Zl+svP4RHGKGjHujTS0puHQYQjiG69Brn7FMK5WMaA4buEg sp5A== 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=GjGpQX54iG6UJcfI6HDb9tDIRJcy1sQN9nZs4hl6I14=; b=uQ9qwq+TCcRyATNcRg5cX0xAJJtCJ1oEwfEDoNPsZH9eDPuKYccCcq/ZlrxbKkLJAb Ux8fAaGShyInvNuhKIJubqTYOoQlbscZDTN1f3ZpgoHZisKdmcTm3pJs88jUHPTvCzYH ipvKLNvIZWesdnb5r6/mc4G766rMcwx6745RQ7+yeXweSFgJNeElbSBPyXYK4v56S9Op NdnudLo6CKnHseXDCphaJAV3VNtaCp8nz9oJ0oXXZIAlCELJcSA9pA/EMd0yB+NWFLDe SyBX2Mh7RGyWL2vMSnt90VmC4aMrRLwkGnos/PN7mVwOsVOrGNXqM5iQ1HEFmLsWSnd6 k34w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linuxfoundation.org header.s=korg header.b=EbEzlGxd; 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 b16-20020a170902d51000b00156aa98a93bsi907172plg.31.2022.04.05.21.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 21:43:33 -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=EbEzlGxd; 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 1D946360CF4; Tue, 5 Apr 2022 20:04:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377545AbiDEL3o (ORCPT + 99 others); Tue, 5 Apr 2022 07:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243810AbiDEIvF (ORCPT ); Tue, 5 Apr 2022 04:51:05 -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 A36E5C9B4E; Tue, 5 Apr 2022 01:39:33 -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 188FA61516; Tue, 5 Apr 2022 08:39:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21342C385A4; Tue, 5 Apr 2022 08:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147941; bh=5Z78gfGHfHm7csyWYfRHlrzotpJOLnNIrOIF5IitPrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EbEzlGxdXU+PKmONZaUxC+IWCWbekAtmIMhowka+SPmhhyHVBRKWkKsGIxIX0dk7R scLpxat6IM3lga8YQK5mYIY4Q7oQrzq11T9s0yP/AifKR5M/PyC3mcLi9VCxU4Tlcg w/FSotpSHaOWqCI1L1UAdrwoD8xBlFql7TS28eL0= 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.16 0177/1017] media: davinci: vpif: fix unbalanced runtime PM get Date: Tue, 5 Apr 2022 09:18:10 +0200 Message-Id: <20220405070359.486183704@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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 @@ -495,6 +495,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; }