seg6: fix srh pointer in get_srh()
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Sat, 16 Nov 2019 15:05:52 +0000 (16:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:18:32 +0000 (12:18 -0800)
commit7f91ed8c4f4b6368b0603543bccb6b5fd10804e1
tree1f3160d93a6cc2d0e14b5ae4822cc99ef89864d9
parentacb9bdc1482280b0164d638ecd416eff6f694e9c
seg6: fix srh pointer in get_srh()

pskb_may_pull may change pointers in header. For this reason, it is
mandatory to reload any pointer that points into skb header.

Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_local.c