aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/anycast.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r--net/ipv6/anycast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index d407992c1481..5810852c558a 100644
--- a/net/ipv6/anycast.c
+++ b/net/ipv6/anycast.c
@@ -414,7 +414,7 @@ static int ipv6_chk_acast_dev(struct net_device *dev, struct in6_addr *addr)
414 break; 414 break;
415 read_unlock_bh(&idev->lock); 415 read_unlock_bh(&idev->lock);
416 in6_dev_put(idev); 416 in6_dev_put(idev);
417 return aca != 0; 417 return aca != NULL;
418 } 418 }
419 return 0; 419 return 0;
420} 420}