diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rt2860/rt_linux.c | 4 | ||||
-rw-r--r-- | drivers/staging/rt3090/rt_linux.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/rt2860/rt_linux.c b/drivers/staging/rt2860/rt_linux.c index d7d9b901a014..b396a9b570e2 100644 --- a/drivers/staging/rt2860/rt_linux.c +++ b/drivers/staging/rt2860/rt_linux.c | |||
@@ -537,9 +537,9 @@ PNDIS_PACKET duplicate_pkt( | |||
537 | if ((skb = __dev_alloc_skb(HdrLen + DataSize + 2, MEM_ALLOC_FLAG)) != NULL) | 537 | if ((skb = __dev_alloc_skb(HdrLen + DataSize + 2, MEM_ALLOC_FLAG)) != NULL) |
538 | { | 538 | { |
539 | skb_reserve(skb, 2); | 539 | skb_reserve(skb, 2); |
540 | NdisMoveMemory(skb->tail, pHeader802_3, HdrLen); | 540 | NdisMoveMemory(skb_tail_pointer(skb), pHeader802_3, HdrLen); |
541 | skb_put(skb, HdrLen); | 541 | skb_put(skb, HdrLen); |
542 | NdisMoveMemory(skb->tail, pData, DataSize); | 542 | NdisMoveMemory(skb_tail_pointer(skb), pData, DataSize); |
543 | skb_put(skb, DataSize); | 543 | skb_put(skb, DataSize); |
544 | skb->dev = get_netdev_from_bssid(pAd, FromWhichBSSID); | 544 | skb->dev = get_netdev_from_bssid(pAd, FromWhichBSSID); |
545 | pPacket = OSPKT_TO_RTPKT(skb); | 545 | pPacket = OSPKT_TO_RTPKT(skb); |
diff --git a/drivers/staging/rt3090/rt_linux.c b/drivers/staging/rt3090/rt_linux.c index 375d0b77cad0..d2241ecdf583 100644 --- a/drivers/staging/rt3090/rt_linux.c +++ b/drivers/staging/rt3090/rt_linux.c | |||
@@ -528,9 +528,9 @@ PNDIS_PACKET duplicate_pkt( | |||
528 | if ((skb = __dev_alloc_skb(HdrLen + DataSize + 2, MEM_ALLOC_FLAG)) != NULL) | 528 | if ((skb = __dev_alloc_skb(HdrLen + DataSize + 2, MEM_ALLOC_FLAG)) != NULL) |
529 | { | 529 | { |
530 | skb_reserve(skb, 2); | 530 | skb_reserve(skb, 2); |
531 | NdisMoveMemory(skb->tail, pHeader802_3, HdrLen); | 531 | NdisMoveMemory(skb_tail_pointer(skb), pHeader802_3, HdrLen); |
532 | skb_put(skb, HdrLen); | 532 | skb_put(skb, HdrLen); |
533 | NdisMoveMemory(skb->tail, pData, DataSize); | 533 | NdisMoveMemory(skb_tail_pointer(skb), pData, DataSize); |
534 | skb_put(skb, DataSize); | 534 | skb_put(skb, DataSize); |
535 | skb->dev = get_netdev_from_bssid(pAd, FromWhichBSSID); | 535 | skb->dev = get_netdev_from_bssid(pAd, FromWhichBSSID); |
536 | pPacket = OSPKT_TO_RTPKT(skb); | 536 | pPacket = OSPKT_TO_RTPKT(skb); |