]> git.ipfire.org Git - thirdparty/linux.git/commit
net: llc: make empty have static storage duration
authorWentao Guan <guanwentao@uniontech.com>
Tue, 16 Jun 2026 06:40:53 +0000 (14:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Jun 2026 00:52:56 +0000 (17:52 -0700)
commitd31deeab707b7945a7805d6406d0cd3118e640ef
tree7c8dd7702921625a3c4d7d0f67bd4bc75f60ea21
parented2294f94e34e97342850c40b320833d881c3819
net: llc: make empty have static storage duration

Make @empty have static storage duration (like net/sysctl_net.c does)
to avoid storing a bad pointer, and keep consistent with
__register_sysctl_table @table 'should not be free'd after registration'.

Note that this is _not_ a bug, since size is 0 the pointer will
never get deferenced.

Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260616064053.690154-1-guanwentao@uniontech.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/llc/sysctl_net_llc.c