Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp493424lqr; Wed, 5 Jun 2024 11:48:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV69VlnwN/ihjfeuc/h4bxAu3qbc8+lRJYyO//xyNhXs/8P1VqzsHncIcVmWa23YJf2UjGIPrdp9ynrclnKL+2fC9xd1q2zmi/MtEqJ3g== X-Google-Smtp-Source: AGHT+IE0F02uSxUAFJLs+odz/6GSwBDkOIbEoELII21n0A9gqWTu0t81yqcc0fwhxbK76bnqCDvf X-Received: by 2002:a05:6358:569f:b0:19c:5226:e29a with SMTP id e5c5f4694b2df-19c6c6aa7f6mr410572155d.13.1717613324047; Wed, 05 Jun 2024 11:48:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717613324; cv=pass; d=google.com; s=arc-20160816; b=Hs3Bw08WrJ7iDtkfRBsxy62KptLS+s5FogIbHsV5YnxE6SdyDyJHRq5xGgYqj/HamZ Y7WcEbQivS8lVXvDfbbRRj3k5LNrPQwpuAmeUjNjgRhYV2Z7OkzrwCP0nZULZY8urkZV h65vGrWYkV1iv73IItesxGzbB65XSozodVZ/cPDatA9ApJKRKg6FQcQYP4FSJVmBZeWC ER3nrdqi+at/Dhdz+lzn602nPZ6OGtzpoQPoUqdWE0J4Qmzos5Y3qvJ+Ifu93+EB9xUM IMtJf/UXPAOhescF6IYNcUAua+OaZXW0TIKKbV9IIZT88sA0HPWY6/9jFXi6eTStuBTv Dm7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IQzRTBXB4qgCgJvENcoRCMY8Zh3aI94hPf0Q5G5/s7I=; fh=2EWT+sQ3dhtZJH3ULZsKf5Ym/FknJjJypZGscr1CwHk=; b=UVTT6/w/SqUUX6xewQo/uBH+Z1NvunSX+1my8B5GY2jCN2W+td2heZWYaZzBQQlDtn fmp5NLsMKWs5c8HFOKf7/MABGCWlmw2t0lseISNuWLvaYllCxEsCM84S8IFVyx0TGKZy WNAon/Na8ZM1487KWY01VszDejfI97CkZAL929F7mWpd6BUOshCF4kSKf4ow0HMKzs7C 4vBpteV1xDA0eJOOZjyADzupPL/7tu1dOs7u1/XDJlaUFhP/NmZUa1xrqMD23357fhJe EpQ43fhyjDwRFpadT99odsh06qQ+h38t//Ley3idbbgvgPD6QHd8IoDwjxJZFiFLbWFM ZqIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Acf2C2w+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42bfcdsi59287506d6.483.2024.06.05.11.48.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Acf2C2w+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203074-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8BB771C2405F for ; Wed, 5 Jun 2024 18:48:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A92013A405; Wed, 5 Jun 2024 18:48:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Acf2C2w+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD9F9DF78; Wed, 5 Jun 2024 18:48:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717613284; cv=none; b=ARsLRxiPuWzLKLn9eL3nkOudm5Bt7pUdbHPWU3FC52Wh0RQchBs7+QmzmSBsx+MPFlngtu76yCk9B119Vil0aFgG5/qzB0cRuH2YR18q1/NVhU1XeJ5H4/PJB9JqHdSYYYrBVfcalf+R6/urtBIL5iQieo3cX1DwSVnsFNY+zrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717613284; c=relaxed/simple; bh=/s34kC5Ydbni4JsHlkkvvQHmMGbSTS4IyJ8sKyCtSpM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sSrcVIjaOshvPsR1gr0b9o6B0rdzN6TX1WM7M6i337EWLd3VIpfMPZbis2htvM/47HhBT7ZvwHCv7oUu4d3ymNNjWQ4AdONP6YhGl76qeZlA9RoZKAVPeDD+NjwIRS3w5oZ8LUIA8SJrFBPMzXCOWAlgUjmgBIcpO2TkwRblTvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Acf2C2w+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D30A7C2BD11; Wed, 5 Jun 2024 18:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717613284; bh=/s34kC5Ydbni4JsHlkkvvQHmMGbSTS4IyJ8sKyCtSpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Acf2C2w+3YFnEUeVGM7A9zMfKJRwgPMk//9WtwakjR7w8EHiIoH0miTOBFY6QblEy 7gVTrW8fJHLaT6v+E3dnUQ2rIwwxQX9FQzdEBcPVFu7W1OtHfPDn8fOrj+Mh0SMXgu gD6u19h1z0qyqJNzrSgAihFzOMI6qKnb9sN0a0Naj12LMIiZ8aS/6zNj8AB9KCHXpm rkgRWBa8qdRpmW12T3R1K+1oyxS1XTBvw69KIRqzeMTsZKW7h1BhWtma1In5lWnx9b vCplEcKyTkQbm4fmjGXkeM7x0IjZY5MLo238cCj3FURSY4Etf2/WOGg2C7Kc9N3VZs CvDv4fQaXSacA== Date: Wed, 5 Jun 2024 19:47:59 +0100 From: Simon Horman To: Andy Shevchenko Cc: Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH net v1 1/1] net dsa: qca8k: fix usages of device_get_named_child_node() Message-ID: <20240605184759.GT791188@kernel.org> References: <20240604161551.2409910-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240604161551.2409910-1-andriy.shevchenko@linux.intel.com> On Tue, Jun 04, 2024 at 07:15:51PM +0300, Andy Shevchenko wrote: > The documentation for device_get_named_child_node() mentions this > important point: > > " > The caller is responsible for calling fwnode_handle_put() on the > returned fwnode pointer. > " > > Add fwnode_handle_put() to avoid leaked references. > > Fixes: 1e264f9d2918 ("net: dsa: qca8k: add LEDs basic support") > Signed-off-by: Andy Shevchenko Reviewed-by: Simon Horman