summaryrefslogtreecommitdiff
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-07 11:27:02 +0400
committerDavid S. Miller <davem@davemloft.net>2012-08-15 10:30:37 +0400
commite7ff4a7037e6908b7a5f4682945a0b097d5b3535 (patch)
tree8a1be09931a1fc75857a03171d5d77377b3dd62c /net/sctp/protocol.c
parent89bf3450cb9b041b1bb4bcc5e7cbdeab4545b1c1 (diff)
downloadlinux-e7ff4a7037e6908b7a5f4682945a0b097d5b3535.tar.xz
sctp: Push struct net down into sctp_in_scope
struct net will be needed shortly when the tunables are made per network namespace. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r--net/sctp/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 0f2342be61f3..59965bdea07a 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -210,7 +210,7 @@ int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp,
list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) {
if (!addr->valid)
continue;
- if (sctp_in_scope(&addr->a, scope)) {
+ if (sctp_in_scope(net, &addr->a, scope)) {
/* Now that the address is in scope, check to see if
* the address type is really supported by the local
* sock as well as the remote peer.