wg: Don't acquire 'wg_lock' in wg_ioctl()
commit0464c50e554540dd89b055af536ed3263356da83
authorAaron LI <aly@aaronly.me>
Sat, 6 Jan 2024 13:56:48 +0000 (6 21:56 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:44:46 +0000 (8 14:44 +0800)
tree59f230190e2e5bcc90634b63f22624ba5ea4d4d8
parent4e281f2c2452ecdd0c82bcf815f1293d0008363c
wg: Don't acquire 'wg_lock' in wg_ioctl()

The ioctl() operation is already locked by the caller (interface layer),
and the 'wg_lock' is only used to protect the 'wg_list' structure, so
don't acquire this lock in wg_ioctl().
sys/net/wg/if_wg.c