]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: rds_conn_lookup() should factor in the struct net for a match
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 3 Sep 2015 20:24:52 +0000 (16:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Sep 2015 05:04:58 +0000 (22:04 -0700)
commite78a577758cfda3e24b9a071900b449ed6c0b18f
tree4814d59e07aaa668296f3feb919aeba003b439b9
parentde36b24c01fa3e472e5dbe741f691a591d1d1b73
RDS: rds_conn_lookup() should factor in the struct net for a match

Only return a conn if the rds_conn_net(conn) matches the struct
net passed to rds_conn_lookup().

Fixes: 864ec4d50103 ("RDS-TCP: Support multiple RDS-TCP listen endpoints,
       one per netns.")

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>
net/rds/connection.c