Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp523283pxf; Thu, 8 Apr 2021 07:52:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz39dUugN9lYaPkFvkqdaSyB5f3lZa8ZQn0TyvmOj3wm3qO2e2lrYoTgJM4P1GyNS1kG7Ah X-Received: by 2002:a17:906:7d58:: with SMTP id l24mr10762049ejp.261.1617893556056; Thu, 08 Apr 2021 07:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617893556; cv=none; d=google.com; s=arc-20160816; b=U9zF36kzIPdWneSjBhMsp0bxKU8t03wPk3hkS9H9jJUeEz5J1gCAlF6XmMahmBUP7y 88KP/eMCEaPq7cLjUOeICTVOQTd381QsYd60YnUuzn4TDhb8jKytJxSWXLgb37UFoHEi j05en4POgYUgaMOY6tgUXKHd1xhJKK2TNKCFXssPHg+OTyF9j0zw4lLTazMGXfLhyY1b haDI44DD+IoxdT/WBc06Nqy87BfWX3OgqojRqUeFs8wnk5keMz1u+NA9pObjyZ5jTQkQ /RQByrHX2whr/EPNyr7n5jv848OCPsId63S+A1TzAV/x4BLcqRAz4qaMhrIoIQbjhsy1 CkGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=TkHG8Tot+IV9coQ8PbJCMBbODAzu4Q6b2E/C1t4HcRU=; b=EDZG5FUUK5sLJYY5Cv1KX292ox7nrGgOMAshZklEupbcL/yjpIbvEeicR8XU1Ia2gw QXinABwJ0O1l9sr74ZgyB4TOR5IsveuOenbgKgpm5WgGWXgXzPA97C4oXaxpbmM/kYwp rFtLRIFxDzr4m7SbO/maVoxpcsjEWKuC06SGyFV5Ib7ZpPNzLoIQLlB4X22Bt7Zq4QNy OYc1j+topw3GXm04LkwLV8cPnUSZnhr+LqziyMa2gV/3/rOvC+NYTzIkQvgmJOxiIPZ3 6bqS1NKgDSJyqPpJMr86/d7PljIKsqN7yswTQjeBOoeHaNfOA8iEZZeN0kN+EzJ0WdMS wPKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si3054948eds.350.2021.04.08.07.52.13; Thu, 08 Apr 2021 07:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231907AbhDHOvH (ORCPT + 99 others); Thu, 8 Apr 2021 10:51:07 -0400 Received: from mga14.intel.com ([192.55.52.115]:55774 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbhDHOvG (ORCPT ); Thu, 8 Apr 2021 10:51:06 -0400 IronPort-SDR: PyfR4KSRMWhwIODmzjvS2Ds8ZZmESnEeetwQV1Twb/Y+VQy5/9pN9fkvwzNfFks15IExRVhGW5 1SA7FPuNHQAw== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="193098223" X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="193098223" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 07:50:54 -0700 IronPort-SDR: BS4SlAfK9CZiY//qxN6ZKNqI5YZNfe0ydolQv7hV/Jlm95wCYH1X2Wh1rWiwOuB1a+8dzJ0y3r 5FT64U57HTrg== X-IronPort-AV: E=Sophos;i="5.82,206,1613462400"; d="scan'208";a="381748717" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 07:50:51 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lUVzc-002JWc-BM; Thu, 08 Apr 2021 17:50:48 +0300 Date: Thu, 8 Apr 2021 17:50:48 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Heikki Krogerus , Daniel Scally , Linux Kernel Mailing List , Linux Media Mailing List , ACPI Devel Maling List , Greg Kroah-Hartman , Yong Zhi , Sakari Ailus , Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab Subject: Re: [PATCH v2 1/6] software node: Free resources explicitly when swnode_register() fails Message-ID: References: <20210329151207.36619-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 04:15:37PM +0200, Rafael J. Wysocki wrote: > On Wed, Mar 31, 2021 at 1:06 PM Heikki Krogerus > wrote: > > > > On Mon, Mar 29, 2021 at 06:12:02PM +0300, Andy Shevchenko wrote: > > > Currently we have a slightly twisted logic in swnode_register(). > > > It frees resources that it doesn't allocate on error path and > > > in once case it relies on the ->release() implementation. > > > > > > Untwist the logic by freeing resources explicitly when swnode_register() > > > fails. Currently it happens only in fwnode_create_software_node(). > > > > > > Signed-off-by: Andy Shevchenko > > > > It all looks OK to me. FWIW, for the whole series: > > > > Reviewed-by: Heikki Krogerus > > Whole series applied (with some minor changelog edits) as 5.13 material, thanks! It seems Greg applied it already. Was it dropped there? -- With Best Regards, Andy Shevchenko