]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ndisc: fix ndisc_send_redirect writing to the wrong skb
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 31 May 2013 01:27:55 +0000 (03:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2013 05:59:12 +0000 (22:59 -0700)
commitdff3e36b56c11c5c1fa24d79f8cd2a1054953eb9
tree2437be01526706f1334707235425252af38825d7
parentc99b8ed6f7fb84f2ec55f4f4fddc7a61b89009a7
ipv6: ndisc: fix ndisc_send_redirect writing to the wrong skb

Since some refactoring in a31d9ba, ndisc_send_redirect called
ndisc_fill_redirect_hdr_option on the wrong skb, leading to data corruption or
in the worst case a panic when the skb_put failed.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c