From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.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 B5DA3368296; Thu, 25 Jun 2026 01:09:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782349757; cv=none; b=dN8va5CMcA+xBW8EZ0FS1e3MWvRPBsqzrdqRXkd219Hwwb9l4TT5zwboOGtO2EUX2/JoNpA/pMUfEEQLJ6W21bH9YbwkZ8i1YUli+9iMKeM8lQ/3IHgFLu5WYGkHUy3hCgmcjEcY6qXRH6K7bnUOSdt9OZniX6JlcJmGoLk97wc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782349757; c=relaxed/simple; bh=fuTFkVyS3OF/WN/Q34+waGSmg3FQhJJ6T3aBWUi6dVQ=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=CWXkMCcj4plzIDfV/fysu7Z9LPYmUO1rGVNELHaYxDeroMAj/8DFyGr4HOZknfN8aPLXQJlAmiL4vlx3sl8p6Bk3U8BERE0ydPn4YC5xXuP0895cIR1CIrOW/CKEdMNeA+V2xlUA0qk42mPBTbDAZExWNt5s25a+q3RCL0kT0t8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MHIdDMcG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MHIdDMcG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91A6E1F000E9; Thu, 25 Jun 2026 01:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782349752; bh=Nj25xJQtIXZclHFrcwxFe9gDkwAEVgsPYTZ0/bIje5M=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=MHIdDMcGjczjGaNDmgRo1k4Bmpk/FhjcFglfxPIfdhm14x9vyMlD7snKM+bDppshA G21Ghk2rogNEWHPHhPyq3nlWWSK/krBG/sNukjLVKJdGVRJ4omPwAVigni23WZC4No wiReTRQ+kZnZCR/DJyseGHlf4khI7xjdW6g8EM6uAmuguXvjI5pfAtCzshRY8ASuKJ Zcui5dyDjW2qEKu6mHG9wrD4/XMjgjE43pKcbt2iqTwuwjosUQqwREcG7sfSsI60yg h20+RjooonRgcFJJRLCx7H3MWY8pudktyzCghwfrNc1JVTH+F3Wu6NvRo9pbhenUp4 iE7sERjQuX19A== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 197B03AAA0F5; Thu, 25 Jun 2026 01:09:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net: dsa: realtek: fix memory leak in rtl8366rb_setup_led() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <178234974075.3045401.10753543727590918296.git-patchwork-notify@kernel.org> Date: Thu, 25 Jun 2026 01:09:00 +0000 References: <20260618140200.1888707-1-mmyangfl@gmail.com> In-Reply-To: <20260618140200.1888707-1-mmyangfl@gmail.com> To: David Yang Cc: netdev@vger.kernel.org, linusw@kernel.org, alsi@bang-olufsen.dk, andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, luizluca@gmail.com, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Thu, 18 Jun 2026 22:01:55 +0800 you wrote: > led_classdev_register_ext() only reads init_data.devicename - it never > stores the pointer. However, the caller allocated devicename with > kasprintf() but never freed it, leaking the string memory. > > Fix it with a stack buffer to avoid dynamic buffers completely. > > Fixes: 32d617005475 ("net: dsa: realtek: add LED drivers for rtl8366rb") > Signed-off-by: David Yang > > [...] Here is the summary with links: - [net] net: dsa: realtek: fix memory leak in rtl8366rb_setup_led() https://git.kernel.org/netdev/net/c/056a5087d87e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html