summaryrefslogtreecommitdiffhomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-23 00:06:18 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-03-02 16:42:29 +0100
commit363da271d4b05ef11f95bcfdcacae43a1350f99e (patch)
treed5cb4230cf26362580973b618e837766673cb111 /src/compat
parentc263d644f9810e3c5e4c4caf35de2a39babb4c91 (diff)
compat: workaround netlink refcount bug
For now it looks like only 4.16 has this, but we'll keep track in case others add it too. Upstream-fix: b87b6194be63 ("netlink: put module reference if dump start fails") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index ba251a0..f92fe54 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -482,7 +482,7 @@ static inline struct nlattr **genl_family_attrbuf(const struct genl_family *fami
#else
#define ___COMPAT_NETLINK_DUMP_BLOCK return get_device_dump_real(skb, cb);
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 14) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 63)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
#define get_device_dump(a, b) get_device_dump_real(a, b); \
static int get_device_dump(a, b) { \
struct wireguard_device *wg = (struct wireguard_device *)cb->args[0]; \