aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sctp/ipv6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 84cd53635fe8..2c29394fd92e 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -844,6 +844,10 @@ static int sctp_inet6_bind_verify(struct sctp_sock *opt, union sctp_addr *addr)
844 dev = dev_get_by_index(addr->v6.sin6_scope_id); 844 dev = dev_get_by_index(addr->v6.sin6_scope_id);
845 if (!dev) 845 if (!dev)
846 return 0; 846 return 0;
847 if (!ipv6_chk_addr(&addr->v6.sin6_addr, dev, 0)) {
848 dev_put(dev);
849 return 0;
850 }
847 dev_put(dev); 851 dev_put(dev);
848 } 852 }
849 af = opt->pf->af; 853 af = opt->pf->af;