mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
ath9k: reduce rx buffer allocation size
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38395
This commit is contained in:
parent
07043a853a
commit
b907e95125
@ -5368,7 +5368,7 @@
|
||||
- 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user