]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/wireless/intersil/hostap/hostap_80211_tx.c
networking: introduce and use skb_put_data()
[mirror_ubuntu-artful-kernel.git] / drivers / net / wireless / intersil / hostap / hostap_80211_tx.c
index 055e11d353caf4c679688f45c35e8f02de4bce42..c1b10d5117ad33bf33e931398b8a8eacfc992781 100644 (file)
@@ -242,7 +242,7 @@ netdev_tx_t hostap_data_start_xmit(struct sk_buff *skb,
                memcpy(skb_push(skb, encaps_len), encaps_data, encaps_len);
        memcpy(skb_push(skb, hdr_len), &hdr, hdr_len);
        if (use_wds == WDS_OWN_FRAME) {
-               memcpy(skb_put(skb, ETH_ALEN), &hdr.addr4, ETH_ALEN);
+               skb_put_data(skb, &hdr.addr4, ETH_ALEN);
        }
 
        iface->stats.tx_packets++;