OSDN Git Service

net: vrf: Remove direct access to skb->data
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 23 Feb 2016 18:10:26 +0000 (10:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:41:57 +0000 (15:41 +0900)
commitea0519a2bc8d7e6244cc5201f7b92b896be60c07
treea415783d6fe20e133331dad3776f865a0b9695fb
parent05b0ca3ec3a2e49f29bfc2879c87699eb5a90ee4
net: vrf: Remove direct access to skb->data

[ Upstream commit 65c38aa653c14df49e19faad74bd375f36e61c57 ]

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: 35402e313663 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vrf.c