Author: nbd
Date: 2015-07-18 18:56:28 +0200 (Sat, 18 Jul 2015)
New Revision: 46412

Added:
   branches/chaos_calmer/package/kernel/mt76/patches/
   
branches/chaos_calmer/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
Log:
mt76: backport rx buffer allocation fix from r46409

Signed-off-by: Felix Fietkau <[email protected]>

Added: 
branches/chaos_calmer/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
===================================================================
--- 
branches/chaos_calmer/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
                               (rev 0)
+++ 
branches/chaos_calmer/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
       2015-07-18 16:56:28 UTC (rev 46412)
@@ -0,0 +1,18 @@
+From: Felix Fietkau <[email protected]>
+Date: Sat, 18 Jul 2015 17:51:24 +0200
+Subject: [PATCH] dma: fix rx buffer allocation size
+
+Signed-off-by: Felix Fietkau <[email protected]>
+---
+
+--- 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;
+ 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to