summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_minisocks.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-05-18 10:50:43 -0700
committerBrian Norris <computersforpeace@gmail.com>2015-05-18 10:50:43 -0700
commit2ddd8db90a22fc4ac708cd8497ed5e46b7f24d49 (patch)
tree10924a4ec59c9b2d114c2287bd35e6debc72595f /net/ipv4/tcp_minisocks.c
parent02787daadbdad80c9c79487b5ef8284aff734a7b (diff)
parente26081808edadfd257c6c9d81014e3b25e9a6118 (diff)
Merge tag 'v4.1-rc4' into MTD's -next
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r--net/ipv4/tcp_minisocks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 63d6311b5365..e5d7649136fc 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -755,10 +755,11 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
if (!child)
goto listen_overflow;
- inet_csk_reqsk_queue_unlink(sk, req);
- inet_csk_reqsk_queue_removed(sk, req);
-
+ inet_csk_reqsk_queue_drop(sk, req);
inet_csk_reqsk_queue_add(sk, req, child);
+ /* Warning: caller must not call reqsk_put(req);
+ * child stole last reference on it.
+ */
return child;
listen_overflow: