diff options
| author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-04-21 17:03:25 -0600 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2021-07-23 02:44:46 +0300 |
| commit | 43d773e645c73cd038a75b6a4eee3b4e25bef197 (patch) | |
| tree | 876b45957757aab4daa129783f1dda1d5913720b /drivers/net/wireguard/allowedips.c | |
| parent | 761fe263f7dc979cc5f586af027bff3c512aa06b (diff) | |
allowedips: initialize list head in selftest
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.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Change-Id: I8a9b8466427c0357231013b4a988762ab6d75d7e
Diffstat (limited to 'drivers/net/wireguard/allowedips.c')
0 files changed, 0 insertions, 0 deletions
