Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp327981yba; Wed, 3 Apr 2019 09:26:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD/NoRPxUHOYdbhwJCpYoXvPBQo65CQv/7qtbp4Xiw7GHsTCqRjSWQV9LpMiPd17vxYg2z X-Received: by 2002:a62:2c91:: with SMTP id s139mr331506pfs.196.1554308812220; Wed, 03 Apr 2019 09:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554308812; cv=none; d=google.com; s=arc-20160816; b=tXJzBob7Ur5N7K5/LsupZqpjYoWClU/FphrtCeZsLKYBd1bDigopMGYehZo9PVLgMs JPlmblQ1SqJMHvwK41LjeTTQFasCUXwbvGaMrvQuflhJ9vZZ+WgfuRbzWTe55udsKKsq /PpApcLUv6ki0g9Yp0riQRXjsnI/joUxuTIhf5nolLZY/pH2D7I7/oKPOgvt2EQRgUnP 0UmQHX18vaRKTVUYzMSvVrACSdo/sD0NAkiZcK16sUz/dfBscnW9H264Rm9xSA4qeUbB 0lOEakymg1kRGDPmp8GAvPgiWtWldhOoEI6ft4nj4ejwcbatmhhyyz2zo/4SeLrGVraN JqJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p7CKVqdI/gQEKFj7L1ppGhaad+BBi+Mv2NzFGtqERWI=; b=WZ5mVW4C/PSQaugBo2rLusQ0SFoS/vWzJ3pM1rX+q9EzzTxWvZDyAxJEafT0bqwk3N bnjO9CJOBzRGsZyCLW1LW/D3DvAzRkGhOt0vJgKwycxSfUcjPs/ZQLdGb685uF1QJoZq 5wWXiBy1WJH9CvTQHf5PPYffRnNDbKXgGpZ2DLpMoBIvxqFg0nzyKgN12snMLsxOH6hw S3Dh94j36a/nQhcruxnO491t3KavCorqTdMT7jBY6HXDtCWAkykplznEzNI0wAcFDFg0 alfqJ031NSZkVkqSvDGs2Y0l7mmFykIF1FRU2FKEPgks1A4EZHID8L/DBSfZbmpriz6X cN3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e5UMYu7d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d186si14283691pfa.218.2019.04.03.09.26.37; Wed, 03 Apr 2019 09:26:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e5UMYu7d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbfDCQZt (ORCPT + 99 others); Wed, 3 Apr 2019 12:25:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:49390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfDCQZt (ORCPT ); Wed, 3 Apr 2019 12:25:49 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7CA4E20663; Wed, 3 Apr 2019 16:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554308748; bh=r5lhSkBf41WnEvJso0OQEY0OEC7GUPNspjBGs+gOw6A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e5UMYu7dBusxCB4bTBKrqEEghDmUpLw9Zr71DC4WdZ8oFj4tPcnhWAAvA4K+rQWYR PU0smol22odC+Y5fq/PT9byTyG0Qof0SlIQMLjp4Foyz/kxN6IvEUOaYGqzjv/tFhW f0AzHcfY6vpZLrT17aRVC+JMuGFt/dpKP/pqEtfA= Date: Wed, 3 Apr 2019 12:25:47 -0400 From: Sasha Levin To: Mark Brown Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Takashi Iwai , Patrick Lai , Banajit Goswami Subject: Re: [PATCH AUTOSEL 5.0 107/262] ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of() Message-ID: <20190403162547.GF16241@sasha-vm> References: <20190327180158.10245-1-sashal@kernel.org> <20190327180158.10245-107-sashal@kernel.org> <20190327193115.GB11404@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190327193115.GB11404@sirena.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 07:31:15PM +0000, Mark Brown wrote: >On Wed, Mar 27, 2019 at 01:59:22PM -0400, Sasha Levin wrote: >> From: Takashi Iwai >> >> [ Upstream commit 8d1667200850f8753c0265fa4bd25c9a6e5f94ce ] >> >> The apq8016 driver leaves the of-node refcount at aborting from the >> loop of for_each_child_of_node() in the error path. Not only the >> iterator node of for_each_child_of_node(), the children nodes referred >> from it for codec and cpu have to be properly unreferenced. > >Given that the device tree is entirely static on all platforms using FDT >I'm not convinced that it is sensible to backport any of the fixes for >references not being dropped that are more than one liners, >realistically nothing is ever going to notice the extra references but >there are things that will notice if we underflow references so there's >some risk we could break things somehow. Seems like it's all risk for >zero benefit. Fair enough, I'll drop it. Thanks! -- Thanks, Sasha