Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6994057rwb; Wed, 23 Nov 2022 00:06:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hdkbeW/n58rXhR6Stc2uqcbVddXN1fo+sf8/s2C9RKls3Cvr8V3rQD2ud31ZXY7bFaReB X-Received: by 2002:a63:a5f:0:b0:440:62f8:55a2 with SMTP id z31-20020a630a5f000000b0044062f855a2mr10492673pgk.542.1669190796354; Wed, 23 Nov 2022 00:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669190796; cv=none; d=google.com; s=arc-20160816; b=fMw5MY0P8QJ+Jf6yoi60kNUquAItphKD+mQB8H5NzWcgPn76Yz8DFMXSysnnY7PumT ld/jMp8j/x2az2s7C60iaspcqg262YSHseS9pdQT0PwHu7KYk2vLpzwddIjeBSANDzd+ Z/j6+z7mESMg24eAn/iCqraQRvZOTiSs4LgDWXLyNdMc1+sgZpQmNt5qaP7MjGpYcDCI L2wXm2eth2FeQZ1mV5582OFmdVm3Ublr4oHHOAd5iyYoJfW69VlecSw0Ncc0K733jcGB eUb+PFbrwldNvQOvyu4C6opmIbkpGz0Ph/VppB0mu39k3SeKg0Rki4RLxg2icFcypvB1 Sh4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=d4qo3fGXZQy+8oZhU7cu78EOId5JBj3qLdZ14a/QvWs=; b=h8MoMm8iLdn8V7rdci/8aCmCK50FSWjL3H1Gu2AFRmwLJtKtcq6VKTSDAiLYk6xkcY dJeloDhnayP7u6/GLICkonU/qYVNWnlqWZzuN0KNicWROxYq3RawXnhCubpYy29aqcvv BAadZCLVPX/px2pkft7NoO2sShjTuHgLJs6GkjTiZ+FIl4b2HZOO/bDgKuZjBaE26mFa RQy0dK2k7tGEeWM4mhSnlocSqsf3VgdsgCrHN7piKR60deUhcHk7qe2DdL4G0B4CnG9r CtDfTr2HUoK/+YKfwQbd+BED62deaqxabW3EZbVkCsNGHIpqWTI1K8J7zqLtiv+S+xYt +tuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=A+BOWQfr; 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=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u63-20020a638542000000b004774bf80b05si11872488pgd.506.2022.11.23.00.06.23; Wed, 23 Nov 2022 00:06:36 -0800 (PST) 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=@fairphone.com header.s=fair header.b=A+BOWQfr; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235652AbiKWHck (ORCPT + 89 others); Wed, 23 Nov 2022 02:32:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235557AbiKWHcf (ORCPT ); Wed, 23 Nov 2022 02:32:35 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBB8115F for ; Tue, 22 Nov 2022 23:32:28 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id e27so667307ejc.12 for ; Tue, 22 Nov 2022 23:32:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d4qo3fGXZQy+8oZhU7cu78EOId5JBj3qLdZ14a/QvWs=; b=A+BOWQfr+GHxiyky3FGgeGI42YGjsE2iWDptOAvatoeyB9b+yQTLOul0n5laPGqlbe A8piGSB5NYg/4Mx8w+5UKEgUuUDPNeVCoiivRVSTZ+v7IQJABI+rxTTv9og6rk9YteNK 46KvaNjHzhJc+JNV46ND6MLRLfneU7Bq3if2AEqmq4uvB1qBgpwg4/LiW9UpX2cF/WJG zRrKF8HL05kapczSgtl+WiYryLavK86jPzLVFl7Pt6cIk5zN7kyYrvTXie5dEcjDEerw B0xxdzXGaCXRdKnoJ2HGdD4lI8QQ02xOFPnp/IoUPQ0/13E6ecEHNzIP8y8jALv0Fp76 p3+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=d4qo3fGXZQy+8oZhU7cu78EOId5JBj3qLdZ14a/QvWs=; b=eOz4sI7CYgkBpNFjM8U9qWP+6XC3cuAA0pDC9txa/Qd3Nlk+JVUd6mmSgRTJ4VwQAo 0+QBMwiY4T6usKY9ulW2/AIsfqaxiduAMzhpJCK7PFDC6TwCHPqI1icxMgqwpnMovwpo mtUGhZ6oRDLrsH9fOBKNm7DVHKH4mdaO2KL5cCItFvlusZmGvUaaWrB9GhCxOg7cGGam lCvc2gRq4WgFV0juRUFZ8cZd8DiSbpJE4ZeCq311YfPrkl6akkM68vk4zd+qPe9ZelPi 0I20/XGZ82fW/de/LFhKrNQSbJnhmTsnXDiUiGpwy/Vfb7KbsGCtVQNyhBQjuf1M8jmT TN1A== X-Gm-Message-State: ANoB5pnyHfAoWyl7D3DE1E8zB0p9mY/oYwFjUbg/rPbQKedXQ57HDsik Nl4dMK4f/NmTidVuDx6JVPnH/A== X-Received: by 2002:a17:906:2302:b0:7b9:de77:f0ef with SMTP id l2-20020a170906230200b007b9de77f0efmr1476436eja.5.1669188747005; Tue, 22 Nov 2022 23:32:27 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id g16-20020a170906539000b007b935641971sm938539ejo.5.2022.11.22.23.32.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 23:32:26 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 23 Nov 2022 08:32:26 +0100 Message-Id: From: "Luca Weiss" To: "Christophe JAILLET" , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Georgi Djakov" Cc: , , , Subject: Re: [PATCH] interconnect: qcom: icc-rpmh: Fix an error handling path in qcom_icc_rpmh_probe() X-Mailer: aerc 0.13.0 References: <253d4aac-62af-15af-90e7-a3cd4bacba92@wanadoo.fr> In-Reply-To: <253d4aac-62af-15af-90e7-a3cd4bacba92@wanadoo.fr> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi Christophe, On Tue Nov 22, 2022 at 10:45 PM CET, Christophe JAILLET wrote: > > I believe the same needs to be applied to icc-rpm.c. > > Their are other issues in the error handling path of this file. > > 1) if (desc->has_bus_pd) { > ret =3D dev_pm_domain_attach(dev, true); > is unbalanced, both in the error handling path and in the remove function= . > > > 2) clk_bulk_prepare_enable() > is not balanced in all error handling paths. > > > 3) the same issue about error handling if of_platform_populate() fails. > > > These issues have been introduced in different commits. > > > Would you prefer several patches, each related to a given Fixes: tag, or= =20 > one bigger "fix all error handling paths"? I don't really have an opinion on this, I guess if the issues were introduced in different commits, make separate fixes? If it's the wrong way somebody will tell you anyways ;) Regards Luca > > > Anyway, fixing the points above would require moving some code around.=20 > Usually I try to avoid it, because it is not always easy to see=20 > associated side effects. > > CJ