RDS: Invoke ->laddr_check() in rds_bind() for explicitly bound transports.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Sun, 11 Oct 2015 20:46:03 +0000 (16:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 11:22:40 +0000 (04:22 -0700)
commit486798001b92eacbf9f809787a6348750c174035
tree6c657666ad8f0f454aa02526651b77ca76d057cb
parent571f2c11b343cd6997f35a21f6caa0f78e87fc84
RDS: Invoke ->laddr_check() in rds_bind() for explicitly bound transports.

The IP address passed to rds_bind() should be vetted by the
transport's ->laddr_check() for a previously bound transport.
This needs to be done to avoid cases where, for example,
the application has asked for an IB transport,
but the IP address passed to bind is only usable on
ethernet interfaces.

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/bind.c