]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ovpn: ensure TCP vars are initialized first
authorAntonio Quartulli <antonio@openvpn.net>
Tue, 28 Jul 2026 11:48:54 +0000 (13:48 +0200)
committerAntonio Quartulli <antonio@openvpn.net>
Thu, 30 Jul 2026 09:28:30 +0000 (11:28 +0200)
commit4680c0ebd958fc18e53c8b91d80436b236a8fc09
tree166b671af9c7829a0b30c605dd5503c752f69f32
parent0301aa324941698bec3dd455df1c5abc7afb10db
ovpn: ensure TCP vars are initialized first

Netlink calls may access TCP global vars (i.e. when attaching
a TCP socket), therefore we need to make sure the
latters are initialized beforehand.

For this reason move the global TCP initialization at the top
of the module init function.

Fixes: 11851cbd60ea ("ovpn: implement TCP transport")
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
drivers/net/ovpn/main.c