[PATCH] libertas_sdio: fix skb allocation size
Marc Pignat
marc.pignat at hevs.ch
Wed Jan 16 05:37:17 EST 2008
Allocate the right size for rx packets, not the maximum size.
Signed-off-by: Marc Pignat <marc.pignat at hevs.ch>
---
Hi!
We allocate too much space for incomming packets, there is no need to allocate
the maximum size since we know the size of the packet.
Regards
Marc
(patch against 2.6.24-rc8)
--- a/drivers/net/wireless/libertas/if_sdio.c
+++ b/drivers/net/wireless/libertas/if_sdio.c
@@ -182,7 +182,7 @@
goto out;
}
- skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE + NET_IP_ALIGN);
+ skb = dev_alloc_skb(size + NET_IP_ALIGN);
if (!skb) {
ret = -ENOMEM;
goto out;
More information about the libertas-dev
mailing list