Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp324689lqb; Tue, 4 Jun 2024 12:30:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEaAmK70Ul+Vhy8/1YUuhx8pJbdnqf8vNjOT4tIwBvZq+dRBRQ3DiLfpEymbUMrcfS6L9Eiv6chFHsMXTxWXLvnYX3ZxxYr6/EzuaWMg== X-Google-Smtp-Source: AGHT+IGQcEAO+Y5ourQwEyVQGMFUeF8oolA5unROlCWElBU6sdrN7azr/sk9AeItUVl3fWG6GeAx X-Received: by 2002:a05:6214:4b13:b0:6aa:dc36:5cb1 with SMTP id 6a1803df08f44-6b02bf60384mr2927876d6.25.1717529425123; Tue, 04 Jun 2024 12:30:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717529425; cv=pass; d=google.com; s=arc-20160816; b=hH7Ng3jRX2VT8o8OqpzbblhmdeWpvZU/vF2VQeRxreAD0DWk3PTpmR0lvJ9NERns5w N9pqD2DdaX7lHIkqBJgC6X8VU6oQLRKK/2LZpxvluGFqT9LwIrdgb937wF83EMt4fe4G lhWN5xzLVj9A4+sGRLXIXpD7YKlXZu7MIdkKXcMrKAqKLGfcZKG2i9l0LmMyTse0WYNm FukOwMV4iqVBDoiD8lYT8ZEIUW9iSiJ65Yvw8f26xtDvY+KrWnUIdsVPmcLpOfsXXy3K sQw5/PJUmMuKTzzRVKkMELY1Wy/8tY9RUj+CHTOg6nnzWGJZvkHyyh11NOFV4bLvIsWG zwAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=MiVeS9VmS7OTdGCshUFKxuKnDsH4tjCl1BC3ZvbsZZc=; fh=uUEEoczOE3IA/2NcDQW/LO49sKI+M/G+dGtlsPlETSc=; b=gRub1Zo06ePEKq+8/w2j9jxMA2hZ+TWEcM6o4ML6efBUAjSXclLZdV5SMRdbg4ybjP tKvuu0n276Z3fYNiOO3bSlvJN7eZKaACFuMd7s4HM90ghQaIDSI6eY4u4HQjTU8hmSGc RONPIg1idwMg5RgnxXRsjvqI17qbUjvKYvfc6Ms1+OJzTaaCmBrRNNtYOL0ZEcmHGRpQ n9F/GUkv+TZWmSK/d/PijbrusUTicGJGs+wwr1RgL9OO3cTqPAF2TlhcKgeXG2BnXy57 9n+qcsdJIGUT838EMZZZC6MQZ1jLvXKbS+cLuYWnqSMFxkEjz9sw1l2LQONVDD+8Ma2Z kyJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201288-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42b760si120209806d6.488.2024.06.04.12.30.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201288-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 D17B31C20ED4 for ; Tue, 4 Jun 2024 19:30:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BB6214B094; Tue, 4 Jun 2024 19:30:14 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 BD7772E64C; Tue, 4 Jun 2024 19:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529414; cv=none; b=gBbMPUtHSjhTeBIdyP/QNdxSsxjdyi7/DCEWzdxsqzFIYh1iSNJuit4oH5esoZ8ehr5g6NWYAbWKHhB0vhxadsxzrYr/IWvhWV9AiDiP5KfGecnLDfutDd5w7ZsNXyNF5ejwlhqgweM10GLM2F5SHrEB8yqFpPQucEOQwWBqlpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529414; c=relaxed/simple; bh=oULadjP6P41q089ExSQ5/oAxT/vKrEmTUYcwve21ydY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tf6cD7vuLQ7jjBsYIJpqSKbRjPNxHNZHJYsB3DuvJlV4IQ30IJ4zUfVsYiQ6KnidZa+4rO32MLyr9Zpke0dClliljsKMSXNM3lTF2jDyKsukLqkbWM91wAVIel4RQp9mP769zqkeZQPJqmKS9MVa/xl6YDGgpnUbBZcfsA+Z8gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-CSE-ConnectionGUID: 1Cvi0cF8TK+EeU5TvQsCOA== X-CSE-MsgGUID: c9JEqBabSyKe2dY58hwyWA== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="14257589" X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="14257589" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 12:30:12 -0700 X-CSE-ConnectionGUID: lYBHTnAjSPer6lvyayjErg== X-CSE-MsgGUID: D8aIAmoOQISCjC8b7LQjgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="68488808" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 12:30:10 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sEZrD-0000000Ddrd-3tyz; Tue, 04 Jun 2024 22:30:07 +0300 Date: Tue, 4 Jun 2024 22:30:07 +0300 From: Andy Shevchenko To: Markus Elfring Cc: kernel-janitors@vger.kernel.org, Geert Uytterhoeven , Marek =?iso-8859-1?Q?Beh=FAn?= , Miguel Ojeda , Robin van der Gracht , LKML Subject: Re: auxdisplay: ht16k33: Drop device node reference after registration failure in ht16k33_led_probe() Message-ID: References: <0fc79fe9-da49-4cbe-a7ff-6443ad93f120@web.de> <503de0cb-09d2-4716-99cb-de257a33bad8@web.de> 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: <503de0cb-09d2-4716-99cb-de257a33bad8@web.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Jun 04, 2024 at 08:15:35PM +0200, Markus Elfring wrote: > > But, by design we don't use reference counting after we registered LED, > > hence both error and successful paths need to have this, > > Do you indicate really special data processing constraints here? Nothing special, either we hold reference for the entire life time of the device or not. For LEDS the convention is not to hold. > > so add another fwnode_handle_put() after this branch. > > Will this suggestion trigger any further clarifications for the affected software? You need to put an fwnode handle in both paths: inside the if branch as you have done (error path) and missing one is after that needs to be added. Just address my comments and I believe everyone will be happy about it. -- With Best Regards, Andy Shevchenko