Skip to content
Commit cbe21d8f authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[PACKET]: Don't truncate non-linear skbs with mmaped IO



Non-linear skbs are truncated to their linear part with mmaped IO.
Fix by using skb_copy_bits instead of memcpy.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Acked-by: default avatarAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 080f22c0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment