[PACKET]: Don't truncate non-linear skbs with mmaped IO
authorPatrick McHardy <kaber@trash.net>
Mon, 18 Sep 2006 06:59:57 +0000 (23:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Sep 2006 06:59:57 +0000 (23:59 -0700)
commitcbe21d8fefca605b90e34f0f019505e599712f9b
treeb30a61468e18c04c91549231d4ca3b2cb67cb52b
parent080f22c0dc544e498e57ad281a9de063fa839957
[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: Patrick McHardy <kaber@trash.net>
Acked-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c