Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6416538ioo; Thu, 2 Jun 2022 06:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5UpMFLreqpHKZ8Uz3Y1b6GoUPUbVu7z6D5mIqjEINKtgDpOsCr8kn1te36FwRWcb/yuE/ X-Received: by 2002:aa7:c34d:0:b0:42d:ce57:5df2 with SMTP id j13-20020aa7c34d000000b0042dce575df2mr5257280edr.315.1654175348365; Thu, 02 Jun 2022 06:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654175348; cv=none; d=google.com; s=arc-20160816; b=iRDE5vvgVMtu8mQId/29DjQPzNhyDpLqK/XqwDRXRpK88KPBFzc6DcAJS4E5MwAK4X Au4MMx7QsdITxr0Cfov/NaelSZTxJSo5SJcv4D0ydNdmVRangNraavimKFXWmKrvS/Xy 2xwyneSkuLachA0vuj0qJc3Evitpwk8KRNhfQMp/Fwvul8GhbGhjMCSRwrxdSyTQbL3b l6WR2ExzrBklD2Jvoa5CXMNfQjPvrWfXFIEgbqjHLnep3n0fpFH0lFjPogm4Ki+eI3T5 vN7Vzx6Zg+Xg23Zqm8JLQl7/RuBmsbDj9pQm6/+ilLxbAhPl3tUjmqiH4JFKTcOQLOxh g4kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=pLVj1uJTvRivpVsSNjp8mqQqjpRsyDOIjlfDbSx3vPs=; b=gYOEcgBvk5ChKqvH0xfESrw1QcP+XIOhIq/fWvbNsibhr0+kLO6nKrHY28Xhi2HnTk iOlpEKI/MujAvbtY2YUXRjhLZXZQ+uWDgj7iYApuVd7p7mDU/V1rR+PwTGamq4/BhI5K 4wnJ2EMUOZlNYcBpZUiFZJGX2c/m8Sg8ITono6jRwQpASKeUr0ObppcytlbSp0u++ODl Z++U3d5Vlc23OtWMCg9H1ocpH7xcEKlWzQOM4yQG8ZqUN8fTwCSbrHRKOUntiExpZes0 DQHgNsxJx3F1v9nHBviTX/uHhfCfvtUUyugeNBkPocJE5R4LNFLhQ/35hwUfPBfB4bs6 yVKA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pw15-20020a17090720af00b006feab5387efsi4267742ejb.248.2022.06.02.06.08.39; Thu, 02 Jun 2022 06:09:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231878AbiFBHkQ (ORCPT + 99 others); Thu, 2 Jun 2022 03:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231871AbiFBHkM (ORCPT ); Thu, 2 Jun 2022 03:40:12 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DAFDD4A; Thu, 2 Jun 2022 00:40:10 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 76CAD1063; Thu, 2 Jun 2022 00:40:10 -0700 (PDT) Received: from [10.57.38.114] (unknown [10.57.38.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 29B353F66F; Thu, 2 Jun 2022 00:40:09 -0700 (PDT) Message-ID: <47f72a91-6af1-d82f-8e4a-b8929725ff19@arm.com> Date: Thu, 2 Jun 2022 08:40:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings Content-Language: en-US To: Miaoqian Lin References: <20220602041721.64348-1-linmq006@gmail.com> Cc: Krzysztof Kozlowski , linux-pm@vger.kernel.org, Alim Akhtar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org From: Lukasz Luba In-Reply-To: <20220602041721.64348-1-linmq006@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 On 6/2/22 05:17, Miaoqian Lin wrote: > of_parse_phandle() returns a node pointer with refcount > incremented, we should use of_node_put() on it when not need anymore. > This function doesn't call of_node_put() in some error paths. > To unify the structure, Add put_node label and goto it on errors. > > Fixes: 6e7674c3c6df ("memory: Add DMC driver for Exynos5422") > Signed-off-by: Miaoqian Lin Thanks for the patch, LGTM. Reviewed-by: Lukasz Luba