Message ID | 20220330013127.426620-4-Jason@zx2c4.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bbbf962d9460194993ee1943a793a0a0af4a7fbf |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | wireguard patches for 5.18-rc1 | expand |
diff --git a/drivers/net/wireguard/socket.c b/drivers/net/wireguard/socket.c index 6f07b949cb81..467eef0e563b 100644 --- a/drivers/net/wireguard/socket.c +++ b/drivers/net/wireguard/socket.c @@ -160,6 +160,7 @@ static int send6(struct wg_device *wg, struct sk_buff *skb, rcu_read_unlock_bh(); return ret; #else + kfree_skb(skb); return -EAFNOSUPPORT; #endif }