]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf17f2b05f4fcb1b34adedd00fe419fd44831192
tree6c657666ad8f0f454aa02526651b77ca76d057cb
parentf6e32ad62a250536e50a1ca39b8af041db904d9b
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