From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2AA7C433F5 for ; Tue, 26 Apr 2022 23:34:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356168AbiDZXiG (ORCPT ); Tue, 26 Apr 2022 19:38:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352265AbiDZXiG (ORCPT ); Tue, 26 Apr 2022 19:38:06 -0400 Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFF016A436 for ; Tue, 26 Apr 2022 16:34:56 -0700 (PDT) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-deb9295679so289863fac.6 for ; Tue, 26 Apr 2022 16:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rqUfSOGZ1teIwHlqjTqKW5qefctpAygnKO2drKsH9dI=; b=D/qioClAQ+KU8gvRilbYlhEYHKiT+0H/WIBXw23GyCqUBT5D8fmk9R1OIc44TEA7js +LJywEt/aWtxDDGmaIb3x7OIM9HUv4+VQCyEeqSNT3F9YE2mgLgWg6InNomvU/TLopSj SPjIXyKBWIW+4Pe3DeDI3Y01BJlrBk79IPWZmRFqwmC3rPlB0eiLtSEBBUrueNP3krfd GsXNnOCv1ouynGD/puxrVQzOADywScBxVEXDVOp35gElrUGBKctk4MTsxyXLlwt9RSfb YLeojdMQg5/efwjxkeMR2EADPGvVf5NrUJgSFqU0870iNFTTEF0O21XVoVCBFHEDoZVn HBvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rqUfSOGZ1teIwHlqjTqKW5qefctpAygnKO2drKsH9dI=; b=PX534MujBliJ1Ogu4yMcIGahXjAN4IriMXfltEcT/FG0Xd2xKfwxb36glb+kxz7UGQ H0R8qTvD0K8SW55JmyW5DqHQ6JEG4z20jGm8BwSt1WXNL8HZBz/v/ZYpcmzIpBNNLWp6 SjGx2YUOPzDWzVIRyOMXqbu6R9ynRn+i8P/6gLPPDsP3XaCoaGYZTz+VyPtU6hDQXf+8 evHr4V8iEAw9xBfeGZ9RhFzy+76aSjNEEiV6gt7HpP8IJEWquzkeYe8kfrmxmI/zIRAx cuU7mVeToFclePluccMWU7wu5foiTGI+SlaqrQn1AGjXBWDpYxj1s7Z7EIvq18FXBtRn 5Plw== X-Gm-Message-State: AOAM531djU5g6joHp/NNZw/hABzU4l3iJb1tRjmBxSlUTm1LG/2vGhpa kHELbXljgZYvjA6Fcc/ZndrlNA== X-Google-Smtp-Source: ABdhPJwVdqnpXywCFOoorgAPIFV29CT0TZAoi/FfYZqaI//R10zdLuGPYfllUCuqMHyeD6k33aytKw== X-Received: by 2002:a05:6870:d5a2:b0:de:f682:6c4d with SMTP id u34-20020a056870d5a200b000def6826c4dmr10417337oao.283.1651016095986; Tue, 26 Apr 2022 16:34:55 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id t22-20020a056870e75600b000e915a9121csm1341699oak.52.2022.04.26.16.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 16:34:55 -0700 (PDT) Date: Tue, 26 Apr 2022 16:36:51 -0700 From: Bjorn Andersson To: Johan Hovold Cc: Kishon Vijay Abraham I , Vinod Koul , Andy Gross , Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Vivek Gautam Subject: Re: [PATCH 1/2] phy: qcom-qmp: fix struct clk leak on probe errors Message-ID: References: <20220422130941.2044-1-johan+linaro@kernel.org> <20220422130941.2044-2-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422130941.2044-2-johan+linaro@kernel.org> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Fri 22 Apr 06:09 PDT 2022, Johan Hovold wrote: > Make sure to release the pipe clock reference in case of a late probe > error (e.g. probe deferral). > > Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets") > Cc: stable@vger.kernel.org # 4.12 > Cc: Vivek Gautam > Signed-off-by: Johan Hovold Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c > index 7d2d1ab061f7..a84f7d1fc9b7 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c > @@ -6077,7 +6077,7 @@ int qcom_qmp_phy_create(struct device *dev, struct device_node *np, int id, > * all phys that don't need this. > */ > snprintf(prop_name, sizeof(prop_name), "pipe%d", id); > - qphy->pipe_clk = of_clk_get_by_name(np, prop_name); > + qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name); > if (IS_ERR(qphy->pipe_clk)) { > if (cfg->type == PHY_TYPE_PCIE || > cfg->type == PHY_TYPE_USB3) { > -- > 2.35.1 >