Skip to contentSkip to conversation

netconsole: fix sysdata_release_enabled_show checking wrong flag

PATCH Applied Breno Leitao 2 participants 2 messages Mar 2 – Mar 4

Subsystems (4)
lore
Share & tools
lore

Breno Leitao

author maintainer
#0 lore raw

PATCH 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.

Fixes 343f90227070 ("netconsole: implement configfs for release_enabled")
---
 drivers/net/netconsole.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/netconsole.c +1 -1
index 2db116fb1a7cd..3c9acd6e49e86 100644
@@ -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]>
#1 lore raw
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() 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.

[...]

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