mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mt76: backport rx buffer allocation fix from r46409
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46412 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
857fe25803
commit
540dcbea01
@ -0,0 +1,18 @@
|
||||
From: Felix Fietkau <nbd@openwrt.org>
|
||||
Date: Sat, 18 Jul 2015 17:51:24 +0200
|
||||
Subject: [PATCH] dma: fix rx buffer allocation size
|
||||
|
||||
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
||||
---
|
||||
|
||||
--- a/dma.c
|
||||
+++ b/dma.c
|
||||
@@ -158,7 +158,7 @@ mt76_dma_rx_fill(struct mt76_dev *dev, s
|
||||
while (q->queued < q->ndesc - 1) {
|
||||
int offset = mt76_rx_buf_offset(dev);
|
||||
|
||||
- buf = kzalloc(len, GFP_ATOMIC);
|
||||
+ buf = kzalloc(q->buf_size, GFP_ATOMIC);
|
||||
if (!buf)
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user