]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6656: vnt_tx_packet use skb_clone to preserve sk_buff.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 27 May 2020 08:49:18 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 10:23:10 +0000 (12:23 +0200)
commit02377e59271cb99909501e7630377464403fb5bf
tree1d0370e11ea0c12c3aec419e60a4394501ad89a8
parenteb60579c27719941ae6f75c322b1588d7fe37d05
staging: vt6656: vnt_tx_packet use skb_clone to preserve sk_buff.

The sk_buff needs to preserved for copying to various parts
of context and passing back to mac80211

clone sk_buff in context so to continue to writing to orginal
sk_buff data area to send in vnt_tx_context.

dev_kfree_skb the context on error or dev_kfree_skb the
orignal when done. The error handling continues as before.

Only one place in function needs to change from
ieee80211_get_hdrlen_from_skb to ieee80211_hdrlen(hdr) which
is already to pointing to correct position.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/b87e8cc1-f584-989d-830b-609d712f08c7@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c