HomeFreeBSD

if_wg: Missing radix unlock can cause deadlock

Description

if_wg: Missing radix unlock can cause deadlock

In function 'wg_aip_add()', the error path of returning ENOMEM when
(node == NULL) is forgetting to unlock the radix tree, and thus may lead
to a deadlock.

PR: 275001
Reviewed by: kp
MFC after: 1 week

Details

Provenance
aly_aaronly.meAuthored on Nov 11 2023, 1:13 PM
kpCommitted on Nov 11 2023, 1:13 PM
Parents
rG4b2d944b406e: pfsync.4: fix typo
Branches
Unknown
Tags
Unknown