dst: Clone child entry in skb_dst_pop
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 15 Mar 2011 21:09:32 +0000 (21:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2011 00:55:01 +0000 (17:55 -0700)
commite433430a0ca9cc1b851a83ac3b305e955b64880a
tree129e0c5db7e5643352ac55a920b5d6c5ef65fb66
parent3bc07321ccc236f693ce1b6a8786f0a2e38bb87e
dst: Clone child entry in skb_dst_pop

We clone the child entry in skb_dst_pop before we call
skb_dst_drop(). Otherwise we might kill the child right
before we return it to the caller.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
net/xfrm/xfrm_output.c