synology-wireguard/patch/peerlookup.patch

13 lines
418 B
Diff
Raw Permalink Normal View History

2021-01-21 07:45:49 +07:00
--- peerlookup.c 2021-01-19 01:34:52.624027083 +0100
+++ peerlookup.c 2021-01-19 01:40:12.063429383 +0100
@@ -7,6 +7,9 @@
#include "peer.h"
#include "noise.h"
+#define spin_lock_bh(lock) __raw_spin_lock_bh(&(lock)->rlock)
+#define spin_unlock_bh(lock) __raw_spin_unlock_bh(&(lock)->rlock)
+
static struct hlist_head *pubkey_bucket(struct pubkey_hashtable *table,
const u8 pubkey[NOISE_PUBLIC_KEY_LEN])
{