Files
linux/net/rds
Sowmini Varadhan 181dda46a3 rds: tcp: use sock_create_lite() to create the accept socket
commit 0933a578cd upstream.

There are two problems with calling sock_create_kern() from
rds_tcp_accept_one()
1. it sets up a new_sock->sk that is wasteful, because this ->sk
   is going to get replaced by inet_accept() in the subsequent ->accept()
2. The new_sock->sk is a leaked reference in sock_graft() which
   expects to find a null parent->sk

Avoid these problems by calling sock_create_lite().

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-21 07:42:19 +02:00
..
2016-07-15 11:36:58 -07:00
2016-03-02 14:13:19 -05:00
2016-03-02 14:13:17 -05:00
2016-07-15 11:36:58 -07:00
2016-07-15 11:36:58 -07:00
2013-03-08 00:35:44 -05:00
2016-06-18 21:34:09 -07:00
2011-07-01 16:16:19 -07:00
2016-06-18 21:34:09 -07:00