]> git.baikalelectronics.ru Git - kernel.git/commit
net: vrf: Remove direct access to skb->data
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 23 Feb 2016 18:10:26 +0000 (10:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 20:34:26 +0000 (15:34 -0500)
commit2ba2d86e33cea4754f404a9231df7604e2f8b76d
treeff42824874036d2293626e8b0f80474fc42f0e3d
parent57bd1c6feedc603816cfef25c47b554646a85820
net: vrf: Remove direct access to skb->data

Nik pointed that the VRF driver should be using skb_header_pointer
instead of accessing skb->data and bits beyond directly which can
be garbage.

Fixes: d338be79af90 ("net: Add IPv6 support to VRF device")
Cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c