tcp: force a dst refcount when prequeue packet
authorEric Dumazet <edumazet@google.com>
Thu, 25 Apr 2013 01:34:55 +0000 (18:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 18:38:33 +0000 (11:38 -0700)
commit756cecd0f066505c506b009235159b30a152d581
treed965253da6c4c3851dbc7d55f318b6b379631794
parentf28cecc16e43ca84d44e5d5fe7bc050e711d2c80
tcp: force a dst refcount when prequeue packet

[ Upstream commit 093162553c33e9479283e107b4431378271c735d ]

Before escaping RCU protected section and adding packet into
prequeue, make sure the dst is refcounted.

Reported-by: Mike Galbraith <bitbucket@online.de>
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>
include/net/tcp.h