ath9k: reduce rx buffer allocation size
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 14 Oct 2013 19:20:02 +0000 (19:20 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 14 Oct 2013 19:20:02 +0000 (19:20 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38395 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/kernel/mac80211/patches/300-pending_work.patch

index 94b3076..42b6809 100644 (file)
 -                              ds += (desc_len * ndesc);
 -                              bf->bf_desc = ds;
 -                              bf->bf_daddr = DS2PHYS(dd, ds);
-+              bsize = sizeof(struct ath_buf) * nbuf;
++              bsize = sizeof(struct ath_rxbuf) * nbuf;
 +              bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL);
 +              if (!bf)
 +                      return -ENOMEM;