netconsole: fix sysdata_release_enabled_show checking wrong flag
Subsystems (4)
Breno Leitao
maintainerPATCH 1/1 netconsole: fix sysdata_release_enabled_show checking wrong flag
sysdata_release_enabled_show() checks SYSDATA_TASKNAME instead of SYSDATA_RELEASE, causing the configfs release_enabled attribute to reflect the taskname feature state rather than the release feature state. This is a copy-paste error from the adjacent sysdata_taskname_enabled_show() function.
The corresponding _store function already uses the correct SYSDATA_RELEASE flag.
--- drivers/net/netconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/netconsole.c +1 -1
@@ -617,7 +617,7 @@ static ssize_t sysdata_release_enabled_show(struct config_item *item,bool release_enabled;dynamic_netconsole_mutex_lock (); - release_enabled = !!(nt->sysdata_fields &SYSDATA_TASKNAME ); + release_enabled = !!(nt->sysdata_fields &SYSDATA_RELEASE );dynamic_netconsole_mutex_unlock ();return sysfs_emit (buf,"%d\n" , release_enabled);
---
base-commit: 11439c4635edd669ae435eec308f4ab8a0804808
change-id: 20260302-sysdata_release_fix-c3d3a1606bc5
Best regards,
Signature · 1 line
Breno Leitao <[email protected]>
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Mon, 02 Mar 2026 03:40:46 -0800 you wrote:
sysdata_release_enabled_show()checksSYSDATA_TASKNAMEinstead ofSYSDATA_RELEASE, causing the configfsrelease_enabledattribute to reflect the taskname feature state rather than the release feature state. This is a copy-paste error from the adjacentsysdata_taskname_enabled_show()function.The corresponding
_storefunction already uses the correctSYSDATA_RELEASEflag.[...]
Here is the summary with links:
- [net] netconsole: fix sysdata_release_enabled_show checking wrong flag
https://git.kernel.org/netdev/net/c/5af6e8b54927
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html