summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/allowedips.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-04 17:17:35 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2022-07-07 13:26:44 +0200
commitf2674e74a6a9dbadecdcc1e8406a1ce48467a70e (patch)
tree921cf6064c39c27710937e6384b514b1863c60a4 /drivers/net/wireguard/allowedips.c
parent7a9b540209657a0e780937b76320e9627886a6fe (diff)
downloadwireguard-linux-trimmed-f2674e74a6a9dbadecdcc1e8406a1ce48467a70e.tar.gz
wireguard-linux-trimmed-f2674e74a6a9dbadecdcc1e8406a1ce48467a70e.zip
wireguard: allowedips: initialize list head in selftest
commit 46cfe8eee285cde465b420637507884551f5d7ca upstream. The randomized trie tests weren't initializing the dummy peer list head, resulting in a NULL pointer dereference when used. Fix this by initializing it in the randomized trie test, just like we do for the static unit test. While we're at it, all of the other strings like this have the word "self-test", so add it to the missing place here. Fixes: a8f1bc7bdea3 ("net: WireGuard secure network tunnel") Cc: stable@vger.kernel.org Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/wireguard/allowedips.c')
0 files changed, 0 insertions, 0 deletions