aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-18 16:56:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-07-18 16:56:28 +0000
commit540dcbea016bf26ebc82be7ecf130df8e897b785 (patch)
tree5b40d5bde01aea784bb93b0dc5e00ee487a9fa3e /package
parent857fe25803e9e725439fcfa33e204f5fcbf04690 (diff)
downloadupstream-540dcbea016bf26ebc82be7ecf130df8e897b785.tar.gz
upstream-540dcbea016bf26ebc82be7ecf130df8e897b785.tar.bz2
upstream-540dcbea016bf26ebc82be7ecf130df8e897b785.zip
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
Diffstat (limited to 'package')
-rw-r--r--package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch b/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
new file mode 100644
index 0000000000..c29c9ba855
--- /dev/null
+++ b/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
@@ -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;
+