summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/selftest/ratelimiter.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2020-05-06 20:03:48 -0700
committerDavid S. Miller <davem@davemloft.net>2020-05-06 20:03:48 -0700
commita7c7fb13625f4ec9df02d32e90d4071393756f01 (patch)
tree6c5955d248bcbaefb3d1fb174d94deec2982ced3 /drivers/net/wireguard/selftest/ratelimiter.c
parentfa0531990450ff121875f3c36a11372bf74562bf (diff)
parent61c48fcac482c102f13b5c50a2875285a5f86c96 (diff)
downloadwireguard-linux-trimmed-a7c7fb13625f4ec9df02d32e90d4071393756f01.tar.gz
wireguard-linux-trimmed-a7c7fb13625f4ec9df02d32e90d4071393756f01.zip
Merge branch 'wireguard-fixes'
Jason A. Donenfeld says: ==================== wireguard fixes for 5.7-rc5 With Ubuntu and Debian having backported this into their kernels, we're finally seeing testing from places we hadn't seen prior, which is nice. With that comes more fixes: 1) The CI for PPC64 was running with extremely small stacks for 64-bit, causing spurious crashes in surprising places. 2) There's was an old leftover routing loop restriction, which no longer makes sense given the queueing architecture, and was causing problems for people who really did want nested routing. 3) Not yielding our kthread on CONFIG_PREEMPT_VOLUNTARY systems caused RCU stalls and other issues, reported by Wang Jian, with the fix suggested by Sultan Alsawaf. 4) Clang spewed warnings in a selftest for CONFIG_IPV6=n, reported by Arnd Bergmann. 5) A complicated if statement was simplified to an assignment while also making the likely/unlikely hinting more correct and simple, and increasing readability, suggested by Sultan. Patches (2) and (3) have Fixes: lines and are probably good candidates for stable. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireguard/selftest/ratelimiter.c')
-rw-r--r--drivers/net/wireguard/selftest/ratelimiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireguard/selftest/ratelimiter.c b/drivers/net/wireguard/selftest/ratelimiter.c
index bcd6462..007cd44 100644
--- a/drivers/net/wireguard/selftest/ratelimiter.c
+++ b/drivers/net/wireguard/selftest/ratelimiter.c
@@ -120,9 +120,9 @@ bool __init wg_ratelimiter_selftest(void)
enum { TRIALS_BEFORE_GIVING_UP = 5000 };
bool success = false;
int test = 0, trials;
- struct sk_buff *skb4, *skb6;
+ struct sk_buff *skb4, *skb6 = NULL;
struct iphdr *hdr4;
- struct ipv6hdr *hdr6;
+ struct ipv6hdr *hdr6 = NULL;
if (IS_ENABLED(CONFIG_KASAN) || IS_ENABLED(CONFIG_UBSAN))
return true;