]> git.baikalelectronics.ru Git - kernel.git/commit
xt_tee: use skb_dst_drop()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 28 May 2010 10:41:17 +0000 (03:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 May 2010 10:41:17 +0000 (03:41 -0700)
commitea69d8385fa383fdea3a72e8d7ea20e807d7a3d3
tree55e45cff7af6aa1fcacef7803556f6f9a14e7f4c
parentbbcfe38fb0a5ce46e7a175f1e44e49baaf4674b1
xt_tee: use skb_dst_drop()

After commit 51a9c205 (net: add a noref bit on skb dst), its wrong to
use : dst_release(skb_dst(skb)), since we could decrement a refcount
while skb dst was not refcounted.

We should use skb_dst_drop(skb) instead.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_TEE.c