mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-05 18:59:58 +00:00
[LIBERTAS]: fix oops on the blackfin architecture
Reserve two bytes to align pointer to the IP header. Signed-off-by: Vladimir Davydov <vladimir.davydov@promwad.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
28de0b36be
commit
f31ce76b78
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue