projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28de0b3
)
[LIBERTAS]: fix oops on the blackfin architecture
author
Vladimir Davydov
<
[email protected]
>
Fri, 7 Sep 2007 01:41:02 +0000
(21:41 -0400)
committer
David S. Miller
<
[email protected]
>
Wed, 10 Oct 2007 23:52:27 +0000
(16:52 -0700)
Reserve two bytes to align pointer to the IP header.
Signed-off-by: Vladimir Davydov <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/wireless/libertas/if_cs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/if_cs.c
b/drivers/net/wireless/libertas/if_cs.c
index e74ec5c309bec341f5a13fa139cf535ae6d137e1..0360cad363a8dacd314be2fb57272daed142c1af 100644
(file)
--- a/
drivers/net/wireless/libertas/if_cs.c
+++ b/
drivers/net/wireless/libertas/if_cs.c
@@
-402,10
+402,12
@@
static struct sk_buff *if_cs_receive_data(wlan_private *priv)
}
//TODO: skb = dev_alloc_skb(len+ETH_FRAME_LEN+MRVDRV_SNAP_HEADER_LEN+EXTRA_LEN);
- skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE);
+ skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE
+ 2
);
if (!skb)
goto out;
- data = skb_put(skb, len);
+ skb_put(skb, len);
+ skb_reserve(skb, 2);/* 16 byte align */
+ data = skb->data;
/* read even number of bytes, then odd byte if necessary */
if_cs_read16_rep(priv->card, IF_CS_H_READ, data, len/sizeof(u16));