aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 17:09:24 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 22:02:57 -0600
commiteaffa9232baa50b2843bb5a88c87c507c1e72ba1 (patch)
treeefda542c228bf1152f5055b642ba588b5c83e95d
parentcompat: backport skb_scrub_packet to 3.11 (diff)
downloadwireguard-linux-compat-eaffa9232baa50b2843bb5a88c87c507c1e72ba1.tar.xz
wireguard-linux-compat-eaffa9232baa50b2843bb5a88c87c507c1e72ba1.zip
compat: widen breadth of prandom_u32_max backport
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-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 2fbfd8c..afe020e 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -226,7 +226,7 @@ static inline void skb_scrub_packet(struct sk_buff *skb, bool xnet)
#define skb_scrub_packet(a, b) skb_scrub_packet(a)
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) || defined(ISUBUNTU1404)) && !defined(ISRHEL7)
+#if ((LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 63) || defined(ISUBUNTU1404)) && !defined(ISRHEL7)
#include <linux/random.h>
static inline u32 __compat_prandom_u32_max(u32 ep_ro)
{