ath9k: reduce rx buffer allocation size
authorFelix Fietkau <nbd@openwrt.org>
Mon, 14 Oct 2013 19:20:02 +0000 (19:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 14 Oct 2013 19:20:02 +0000 (19:20 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38395

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

index 94b3076c2ef2a9433b126cc798487ebfb0d1ee22..42b68093059072c8a4ce56ccc7ae994a8fdc4491 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;