Skip to content
Snippets Groups Projects
Commit b907e951 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ath9k: reduce rx buffer allocation size


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 38395
parent 07043a85
No related branches found
No related tags found
No related merge requests found
...@@ -5368,7 +5368,7 @@ ...@@ -5368,7 +5368,7 @@
- ds += (desc_len * ndesc); - ds += (desc_len * ndesc);
- bf->bf_desc = ds; - bf->bf_desc = ds;
- bf->bf_daddr = DS2PHYS(dd, 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); + bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL);
+ if (!bf) + if (!bf)
+ return -ENOMEM; + return -ENOMEM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment