1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Sat, 18 Jul 2015 17:51:24 +0200
3 Subject: [PATCH] dma: fix rx buffer allocation size
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 @@ -158,7 +158,7 @@ mt76_dma_rx_fill(struct mt76_dev *dev, s
11 while (q->queued < q->ndesc - 1) {
12 int offset = mt76_rx_buf_offset(dev);
14 - buf = kzalloc(len, GFP_ATOMIC);
15 + buf = kzalloc(q->buf_size, GFP_ATOMIC);