diff options
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r-- | net/ipv6/raw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 45a580e843dc..cb0b110a2ac8 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -298,7 +298,8 @@ static int rawv6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) | |||
298 | v4addr = LOOPBACK4_IPV6; | 298 | v4addr = LOOPBACK4_IPV6; |
299 | if (!(addr_type & IPV6_ADDR_MULTICAST)) { | 299 | if (!(addr_type & IPV6_ADDR_MULTICAST)) { |
300 | err = -EADDRNOTAVAIL; | 300 | err = -EADDRNOTAVAIL; |
301 | if (!ipv6_chk_addr(&addr->sin6_addr, dev, 0)) { | 301 | if (!ipv6_chk_addr(&init_net, &addr->sin6_addr, |
302 | dev, 0)) { | ||
302 | if (dev) | 303 | if (dev) |
303 | dev_put(dev); | 304 | dev_put(dev); |
304 | goto out; | 305 | goto out; |