summaryrefslogtreecommitdiffstats
path: root/kernel/net/ipv6/addrlabel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/ipv6/addrlabel.c')
-rw-r--r--kernel/net/ipv6/addrlabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/ipv6/addrlabel.c b/kernel/net/ipv6/addrlabel.c
index 882124ebb..a8f6986dc 100644
--- a/kernel/net/ipv6/addrlabel.c
+++ b/kernel/net/ipv6/addrlabel.c
@@ -552,7 +552,7 @@ static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh)
rcu_read_lock();
p = __ipv6_addr_label(net, addr, ipv6_addr_type(addr), ifal->ifal_index);
- if (p && ip6addrlbl_hold(p))
+ if (p && !ip6addrlbl_hold(p))
p = NULL;
lseq = ip6addrlbl_table.seq;
rcu_read_unlock();