]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipv4: raw: fix icmp_filter()
authorEric Dumazet <edumazet@google.com>
Sat, 22 Sep 2012 00:08:29 +0000 (00:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:47:04 +0000 (05:47 +0900)
commit9e3e8f791b0f6f802a86f1da9487f7aa6f369a1c
tree2bdd561eb1553d23ae9dae8ac7a49437a1e01236
parent8dababfcf8a507f93d23a10fc24c675c33e8b933
ipv4: raw: fix icmp_filter()

[ Upstream commit ab43ed8b7490cb387782423ecf74aeee7237e591 ]

icmp_filter() should not modify its input, or else its caller
would need to recompute ip_hdr() if skb->head is reallocated.

Use skb_header_pointer() instead of pskb_may_pull() and
change the prototype to make clear both sk and skb are const.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/raw.c