Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp279699lqp; Wed, 12 Jun 2024 00:58:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIU6IKsMPv+Y0j7ZmNcHojpvwufcU1EP324mcEeOglXCdbvtIoEQJVf0/L+2dc0deGYil5BpwsMy51QUIgPBbobx+FiTPsYx//6+8N2A== X-Google-Smtp-Source: AGHT+IGpB766wKjr5tpyNaAokmRypv8Hb2WXGyb60SsQ1F+ia+g8ey9f7E6JA/m4K8Wlpel4adjR X-Received: by 2002:a17:903:1cb:b0:1f7:1528:7b8a with SMTP id d9443c01a7336-1f83b6652fcmr12604255ad.41.1718179109535; Wed, 12 Jun 2024 00:58:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718179109; cv=pass; d=google.com; s=arc-20160816; b=rDjJoIA8uwrVezVbnxHFCd1ZThimfrETGZTln9An/pVWuJOTr+TVkKrb8eFtFzksOr KXOqfA328vIQSlb4NAvE4hE5TEf8sFWcXWGoqYcnhnd1gqiozzt7s+rwH2yZOGUjAkfh qTjS82gRNiVCCBEMXej10Oks8p5iVXdaDTaP69HZWhPR4Y//EEZ/iCFpfn/sMWl2HI1+ YxvKcNf6VsT/h1Kc0zxR26KMp1QGdIClPTn9NqFNobuYcztchO/Q/lpKwvsWG4umGkZj +SZTIyXTp9TjRdLmoGvnBqe6zGHMHrgqLD45S/lq6P0235VlJO4zpLiwhqmhdggvrQa/ diIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=U7JboHS+8f700/0r7dXQ2wq+jRDkoPUXLFMelFlwKf8=; fh=+LGtvA1NRvAY9nDc0k+VhI1zVJINl5S0jGvBRYcVTWA=; b=rz+AZaG0uQRwEa8XIT+A4SH+R0ox7X4XmasNxkVwp3n5xKixeioBGobHmObdzzoN1u UqRGn+LyHnt4+Zbp4sTE8nmQRg6bfQnQFtaihe76pG5QzV3U3iMK6w4avRTGV7IlLXjv BVBRWrkxaMmu49ZIZmBRDIltVlA4uN3bnN96m6+m86n80GdSdXSLsGXxkDDNq35a5vq5 dx5VZphY84umohrZb8c/SFKfDsFuD8cb2Mds/yVN9TQi+L/Hd5+OdtWCvOql7MO5EkG7 /3AKycj/r7GXjVVnK3MRgQBbCqmLa7c+cKoxrPVchOZkGXKprcNn9rzw9ELhnjTT1MK+ OyYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W82+Lsoi; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f71007cb40si54866195ad.105.2024.06.12.00.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 00:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W82+Lsoi; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3FE59B225DB for ; Wed, 12 Jun 2024 07:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 236B816C862; Wed, 12 Jun 2024 07:55:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="W82+Lsoi" 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 3A6232772A; Wed, 12 Jun 2024 07:55:19 +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=1718178919; cv=none; b=FDPDxY35sX57yNZMO0qcI+21rxpXcNt2CgoET3wRcqfyIYKCt35Kp2iWXjqmN3WXRt/rblC1eGnE0EbkvJOYvj7eJTSQghz5uPzQ1vREpbzjjaIJqz4HHRuWUAYFPc+Spo7ZS77bbW65txxPLd0eRZlonnxrnA7pmYF3kFd4S5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718178919; c=relaxed/simple; bh=kA+gK3R1K0N3WlcTK15m+Is6Wd1GEeoj6lkFDDgAOGY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MJLUe6ePNkR0x578hom+x7G2Y8p2V5UIui2KuqXmiRsiTz8fIXg+Nu/vN6pEDY7BwKVaUZfM/vmYe3q/u+PImTBVZa5AM7YacN7VmpyQaC7QvtAfJ8wwZvRVa7MQKPes4SevNMlgC3/FWQmQ15G1tcHBoMU1Mba+7AmTirq7lTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W82+Lsoi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80B61C3277B; Wed, 12 Jun 2024 07:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718178919; bh=kA+gK3R1K0N3WlcTK15m+Is6Wd1GEeoj6lkFDDgAOGY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W82+Lsoifld1Xd0wRHjr777X5Id5PyHMOGCc1qjZuHKvHM/rGphrmsPqp37Ngyy6s KYWxRjuX+xeBl5O7BXUBfCnTzs0gJkGgO6d0k5bpgdk/sra8DB1OL/MSnKZLVp8tZs VYJKDLywhQdEr+1Y0DX9Bc3mdhMGwpBXbwEhgz04= Date: Wed, 12 Jun 2024 09:55:16 +0200 From: Greg KH To: Markus Elfring Cc: Javier Carrasco , linux-leds@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Angelo Gioacchino Del Regno , Lee Jones , Matthias Brugger , Pavel Machek , stable@vger.kernel.org, LKML , Jonathan Cameron Subject: Re: [PATCH] leds: mt6360: fix memory leak in mt6360_init_isnk_properties() Message-ID: <2024061209-giddily-slander-a6db@gregkh> References: <20240611-leds-mt6360-memleak-v1-1-93642eb5011e@gmail.com> <010b1c91-fbde-4b01-a92e-8c14751c7699@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <010b1c91-fbde-4b01-a92e-8c14751c7699@web.de> On Tue, Jun 11, 2024 at 04:01:49PM +0200, Markus Elfring wrote: > … > > Add the missing calls to fwnode_handle_put(child) to avoid memory leaks > > in the error paths. > > I suggest to apply a goto chain for a while. > https://wiki.sei.cmu.edu/confluence/display/c/MEM12-C.+Consider+using+a+goto+chain+when+leaving+a+function+on+error+when+using+and+releasing+resources > > Will the application of scope-based resource management become feasible with another delay? > https://elixir.bootlin.com/linux/v6.10-rc3/source/include/linux/cleanup.h#L8 > > Regards, > Markus > Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot