From 8311a25f2b4e69b7a3f8133b884cede065b253cc Mon Sep 17 00:00:00 2001 From: medusalix Date: Mon, 6 Jun 2022 16:52:52 +0200 Subject: [PATCH] Fix incorrect SKB length --- transport/mt76.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/mt76.c b/transport/mt76.c index 2a6f730..1d0a3b5 100644 --- a/transport/mt76.c +++ b/transport/mt76.c @@ -1099,7 +1099,7 @@ int xone_mt76_associate_client(struct xone_mt76 *mt, u8 wcid, u8 *addr) sizeof(mgmt.u.assoc_resp); int err; - skb = xone_mt76_alloc_message(sizeof(struct mt76_txwi) + mgmt_len, + skb = xone_mt76_alloc_message(sizeof(struct mt76_txwi) + mgmt_len + 8, GFP_KERNEL); if (!skb) return -ENOMEM;