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)
commit8f384c0177a03640312b9cb3638c998b32243b63
tree4814d59e07aaa668296f3feb919aeba003b439b9
parent42ea4457aea7aaeddf0c0b06724f297608f5e9d2
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: 467fa15356ac ("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