Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Signed-off-by: Breno Leitao <leitao@debian.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260302-sysdata_release_fix-v1-1-e5090f677c7c@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Breno Leitao and committed by
Jakub Kicinski
5af6e8b5 4ee7fa6c

+1 -1
+1 -1
drivers/net/netconsole.c
··· 617 617 bool release_enabled; 618 618 619 619 dynamic_netconsole_mutex_lock(); 620 - release_enabled = !!(nt->sysdata_fields & SYSDATA_TASKNAME); 620 + release_enabled = !!(nt->sysdata_fields & SYSDATA_RELEASE); 621 621 dynamic_netconsole_mutex_unlock(); 622 622 623 623 return sysfs_emit(buf, "%d\n", release_enabled);