diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 9eb61c7cae57..31938e5fb220 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1520,6 +1520,8 @@ static int addrconf_ifid_infiniband(u8 *eui, struct net_device *dev) | |||
1520 | 1520 | ||
1521 | int __ipv6_isatap_ifid(u8 *eui, __be32 addr) | 1521 | int __ipv6_isatap_ifid(u8 *eui, __be32 addr) |
1522 | { | 1522 | { |
1523 | if (addr == 0) | ||
1524 | return -1; | ||
1523 | eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) || | 1525 | eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) || |
1524 | ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) || | 1526 | ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) || |
1525 | ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || | 1527 | ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || |