Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp685029pxb; Tue, 5 Apr 2022 18:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFDP+rJAHF7aQ+Z3TPCR1oZwx3I6dxb1biZTdXt55ZlTAqWSuZSCOdx0KJmND1FTWm46xD X-Received: by 2002:a05:6402:3495:b0:419:1ff6:95d9 with SMTP id v21-20020a056402349500b004191ff695d9mr6470325edc.249.1649209384158; Tue, 05 Apr 2022 18:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209384; cv=none; d=google.com; s=arc-20160816; b=o52nkVX+vnNwKSyUCN8b5tO/gzsv57GAZ8WLv13kWXN5G7mWjaV5D5604/0Twhp/fd lFXIc+6AYRYGCRMrvaMS15J583O3zkYiruQnn/20uyZI6bO96RI8/WgaOkUCfynkWdrf d/Egdh/05Gpa9xMmvflr4DdvXHeEwxnGoAInpLrHotQ6gfE4vlK/PvWJXjMIZhx55kpj u9hvb7dyVr6tvDTYr3qLqmFdvK8zj7BYuamCRdO6oktLyaxf9ucqp3ZwXc2HtkuMdhd1 A0TzoUcvv4zbSwzFBrh64tVP1xJdhWBGwAdHAPOnjc8JT2Bg9h+A7YopHiZo+afi5Rtn aNsQ== 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=1lDZlNbXDuCE18Qnuj3VY926UJTQlMs8y4SDw7X1qqo=; b=Ts7CMYooeQ1l9LpqmtEafRI+yMcI2PqTzUCKKU8xVlCOMXgdmYvEjrGiE8D6+7rv8H 0xRt/+mX7E2SJU92zwtItik5foUKIF+1xImie2KU7m2P1nwueL2eoK+aAxSJblpqdEzI chb8Y1e/qdteemMK2Xs1RESd8nDIh5/ba3rnHdH2HUhlOu5lb7JZvuHVTZEqZpciN9pK MnJbFnyt6wKORZrwEuDzkU1/TceCV4fsOY5HS/qejviNJD18gMHwZ5/RiccXwZgdvd2i 1vKJmnTN5mTAEbA/fH6yMvSIe9oOnDuq2Ff+/OADWJzD+x9BNI+mBKJungPvIpwNQZxv FkQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x87SFKyK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a17090660cd00b006df76385eebsi6475258ejk.907.2022.04.05.18.42.34; Tue, 05 Apr 2022 18:43:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x87SFKyK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1391145AbiDENrX (ORCPT + 99 others); Tue, 5 Apr 2022 09:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347331AbiDEJZ3 (ORCPT ); Tue, 5 Apr 2022 05:25:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD7DDD941; Tue, 5 Apr 2022 02:15: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 6D38C615E5; Tue, 5 Apr 2022 09:14:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B262C385A0; Tue, 5 Apr 2022 09:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150063; bh=yqm4qNRot0W+kBh+mRQCRatH0OJBgYorbLjzeBfhe3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x87SFKyKRhpGyNv8lsZ+id/nfoC00tWKDYwcB3LIz2RDtpBvYS9hxHkBnGKbZvMVn dQUSwj7PJutpVLrqoUip/RBAzmPwhbGWCWLPi8FYHG6aYhVfFSE9qPNE+dsWINPRCE 01V+Jht7M4X7E4VME/grv/FIh3fGATPS+pzIDSwY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Guenter Roeck , Wim Van Sebroeck Subject: [PATCH 5.16 0941/1017] watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function Date: Tue, 5 Apr 2022 09:30:54 +0200 Message-Id: <20220405070422.147201922@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Miaoqian Lin commit d055ef3a2c6919cff504ae3b710c96318d545fd2 upstream. If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Fixes: 2d63908bdbfb ("watchdog: Add K3 RTI watchdog support") Signed-off-by: Miaoqian Lin Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20220105092114.23932-1-linmq006@gmail.com Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/rti_wdt.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/watchdog/rti_wdt.c +++ b/drivers/watchdog/rti_wdt.c @@ -228,6 +228,7 @@ static int rti_wdt_probe(struct platform ret = pm_runtime_get_sync(dev); if (ret) { pm_runtime_put_noidle(dev); + pm_runtime_disable(&pdev->dev); return dev_err_probe(dev, ret, "runtime pm failed\n"); }