Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp300980lqs; Thu, 13 Jun 2024 10:19:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWj0HKSlz6o3B7UmaAZw47wmFyE2SkMcYCFuIjipjri01ji9kZDow0g+ADa+QgJYo2nP+TkXlEofcP3Xhk4I8wo5RZgHUZRy1YHy4fbkQ== X-Google-Smtp-Source: AGHT+IF/4qgTsy6FuQ/ZFpWLhSRzS/Mwqn2O1uWleGf38qTvfjqdQ9kL0Xfl6Pou89BX1IOe8OAu X-Received: by 2002:a05:6a20:5601:b0:1af:fff9:30dd with SMTP id adf61e73a8af0-1bae7ed0428mr505641637.35.1718299169940; Thu, 13 Jun 2024 10:19:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718299169; cv=pass; d=google.com; s=arc-20160816; b=le69mhG5FWT65T68kzdUf6SMPYUs6HHchA7cWMhysl+eLt6TIjy1Ci+aK/btGz8tjF w7TEj9SvYJOPGDB/lPgQ0ew2qzNU9/im6GXdkvvcvvV1Kspq0ZpmYm5Ac37uv+QJvqB1 WSJ42XOwj0wKqEKoqhMJeGalya/JJnomcsMH3Y3IdSf5lBOuhWgAkQfAYYtN7yF+hXCQ hxap4SSU5p/IHRE7Gfl3mG0HhHQZbkncMMT9qh/sRj9DaYuWNPV9xYXNtbjn5GzoneXU 3pVqK16ch8Mnq1uzUhl27BQrgNEZQcD8RtIlqT15UTG+krEx9xONbxvpEbPOLEJ3fFDu 092g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=0cYsn/reiFGxyzaxBvIUFRxhNp+Xcdk9EZuauXuRcOg=; fh=AvHxLcUi0hFJUtgnZxDi6qo6usgdSKn7/fE95daEaog=; b=iGrSWXq3RN0aTImy06Fh1p40YgTukWYWxEdcu3rnsWEIZ91DDboYEvs86Hb5EweMct YwFztZ/8WKEixcxdorQExxaSMxVyetdFq1mAblNPAirHRBV9NGwc6BdKYPQ55kM6gjvH f3hYqNqzEGgqcz9Q6o67ivVpB0NUphebXQRz8l1xnmu/1TVPiZan60uY59uFbacjXs3n TYtkXh+d9yLDaGY+XtaXRELnVI9LYnAMoeMNbmknwUhzTTw4xWnn9nCNKqdNziEP0chF P9FViFHZ7LqsYCR9bOWzf3JV2aRYzY4E+0Z7X09JXD07Y0+fUfm+f2d60lYhhowY/G0V B6yA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QPMe2W5q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 41be03b00d2f7-6fee53a130esi1759969a12.652.2024.06.13.10.19.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 10:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213730-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=@kernel.org header.s=k20201202 header.b=QPMe2W5q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213730-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C6A8CB22F11 for ; Thu, 13 Jun 2024 17:19:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCF3614A600; Thu, 13 Jun 2024 17:19:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QPMe2W5q" 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 08DBC12D76D; Thu, 13 Jun 2024 17:19:00 +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=1718299141; cv=none; b=XoCYcwZNvLtYv3fz4QUuG0MG+pKOWMqa8fTteWShVG/F+12w5yhhibgE8J8X9TMI9mjdpsiO6FQX8IpvsKxgS97Ud04bMuXsKHqxE1P9Y+44PJiez1G8c5LPCJA6me6BA4RLpfmXZOf4jBMXmoZ4GXupJ7v90Lk98+KENdGXBj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718299141; c=relaxed/simple; bh=/FRqBJ2+W9oi2BU9wQ0dzEOCrTnN9o8UYQjQ6KKGegg=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=BraO1iE34dENe+TcYwNIZreSgStr8/GDIigQyXiz0mguWVGMBfqfYxzR/YAiPj8Pw8h/3W3fO4Ic+mq7qeBLQfWedYMBHXzpM5Nib4mYPSxwkhtuJ5wFNn1ehKsG1Eu0K6gbBxOMLDpKRIiNILomBeQKL9zRaw4Cs/wfWwFwA3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QPMe2W5q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB0AC2BBFC; Thu, 13 Jun 2024 17:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718299140; bh=/FRqBJ2+W9oi2BU9wQ0dzEOCrTnN9o8UYQjQ6KKGegg=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=QPMe2W5qRO49VpynzkQuyjHER7fJc/OxSZSqr+1Xx9xtGDumzv7UBy9TSDnOdKKub bD6ldak9xEoJTTwfRO3is+ngcveTbe2DdZy9aVkjit7bJAl3+NBuRImqcEiTan15Yd /c4j47b5mVPzW33yO5C92LsJm5yr1qxX8pAuYzhR2zSVx+sBnjiPoojsjiV0uyJJMa 8lht12SgN+ELZgs8SWoHMuCkyVuucbl01YMwvjuAfYYK1mnfaF/wFM/PX16tayzNWK MwyDu2XWxMYD8jE3545aYxKhyRtIIboV//Do5w4qXTJCLqXUCqo8+6f2gDFPrhyX83 SoNs6J7D7g89Q== From: Lee Jones To: Pavel Machek , Matthias Brugger , AngeloGioacchino Del Regno , Javier Carrasco Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, stable@vger.kernel.org In-Reply-To: <20240611-leds-mt6360-memleak-v1-1-93642eb5011e@gmail.com> References: <20240611-leds-mt6360-memleak-v1-1-93642eb5011e@gmail.com> Subject: Re: (subset) [PATCH] leds: mt6360: fix memory leak in mt6360_init_isnk_properties() Message-Id: <171829913865.2730656.15082928550080844498.b4-ty@kernel.org> Date: Thu, 13 Jun 2024 18:18:58 +0100 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-Transfer-Encoding: 8bit X-Mailer: b4 0.13.0 On Tue, 11 Jun 2024 00:40:26 +0200, Javier Carrasco wrote: > The fwnode_for_each_child_node() loop requires manual intervention to > decrement the child refcount in case of an early return. > > Add the missing calls to fwnode_handle_put(child) to avoid memory leaks > in the error paths. > > > [...] Applied, thanks! [1/1] leds: mt6360: fix memory leak in mt6360_init_isnk_properties() commit: 6e0b2281085191fbf34fb24ef272cb44a82de4f0 -- Lee Jones [李琼斯]