Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp954894pxb; Wed, 6 Apr 2022 05:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP83U1+ILie4aCQJF6ZInkWQ8iX0RhT3IuXUwH/72xqTHO0yRutvvCxDV5R6hLY95TBSxx X-Received: by 2002:a17:90b:4a06:b0:1c7:2020:b5b9 with SMTP id kk6-20020a17090b4a0600b001c72020b5b9mr9544067pjb.58.1649247276692; Wed, 06 Apr 2022 05:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247276; cv=none; d=google.com; s=arc-20160816; b=dgNKLzM1bsMeVV5BMGzfWUdrP0d2T5xQ6KyD72vmzhHyd9dIWvdeI5bEEcFSGVYqdy deOR0AIww2GGa+PE59IQLeMP3XbmojWlJrBu7PS5mhIFGaHmAL3cMk7hMdTKC2L4AP9N 8xpnGb0XC4wR8sdgUIKkR2UdBBRddFNpCveRiYNXhafTaMcaRVSf37sEHbzTYZHbKuX5 iZwVYlB0XXnWS/bZqUhCcigZ3YMjKrKFfCuIclJ2dx51yH34iQ8zM8QxcF5XwM/HENdG B9aRyvWvhVh1lC5kDVH0x2WeC4GNqEqMwi+wSSSBTtMsGsWE5j4qcXj8Ln3i0od51k8a Y5Og== 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=U3WLHyfh81OGJo07EwiOHDoas4BDg9CFy/dVskPUl6E=; b=N/Mma6QbupOYdIVfC+luOHDDzX62BvIUk79y4m2kCcwBq505QKTESrttKZARFpUCPN bkT8BYn4dNEXWUPeb7RfdVGwbJLFwbpFkTMvyecVEa3t61nqdJtAHF63Ds/dO7toTHsf 9FYfdKi0kn4IWS+KdT+Sv4hf8odGROGyxWsCvk+MuYbEdW79VpeV7dv/oViIfSujCH+M IkRP1WjM2hhV2H3Rqi0stSwYM0GgieZ1ZZ/L8wGsdce4kd1chY2J9s6uD/pDm7JhAk7R OR11ZCTMGDOG63pUPyVIx9ajZkaMbQ2jcbAaBeIMH4HT7FssmcJn2PCSVJ2CzhBzws9T NniQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lw+ck9sZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z2-20020a6553c2000000b003829aca7f1asi1764316pgr.637.2022.04.06.05.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:14:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lw+ck9sZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2109515790; Wed, 6 Apr 2022 03:53:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1583239AbiDEXvw (ORCPT + 99 others); Tue, 5 Apr 2022 19:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354111AbiDEKLs (ORCPT ); Tue, 5 Apr 2022 06:11:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C504506DE; Tue, 5 Apr 2022 02:57:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 4F0F2B81B13; Tue, 5 Apr 2022 09:57:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9947AC385A1; Tue, 5 Apr 2022 09:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152636; bh=M22wOKUpekKpognQbIgFpkF7FL2nVQ5DecRYMgd2GuI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lw+ck9sZa/GaKHUCH0u/WWNn0OITLc8JPCHWofrBCyBd5hHjmBJI1KgTNR9Gqawvf aovUm+LT4+nPMOzjrWdHjJFAYCWfPWcLZt+b3tXUwJPq8E7/HlocZBiHXLWj7pj46I 3GN5wjLHbehx0S82eJxUc27k9oMIVyChT1cVQJfo= 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.15 848/913] watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function Date: Tue, 5 Apr 2022 09:31:50 +0200 Message-Id: <20220405070405.247995032@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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: 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 @@ -229,6 +229,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"); }