From eaffa9232baa50b2843bb5a88c87c507c1e72ba1 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 21 May 2020 17:09:24 -0600 Subject: compat: widen breadth of prandom_u32_max backport Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 static inline u32 __compat_prandom_u32_max(u32 ep_ro) { -- cgit v1.2.3-59-g8ed1b