]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/dccp/ipv6.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux.git] / net / dccp / ipv6.c
index 85c10c8f50bd1426c8521b97689a872bc6896e68..1b7381ff787b388488a8458b6f52760f73a4f22d 100644 (file)
@@ -830,7 +830,7 @@ static int dccp_v6_connect(struct sock *sk, struct sockaddr *uaddr,
                if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) {
                        struct ip6_flowlabel *flowlabel;
                        flowlabel = fl6_sock_lookup(sk, fl6.flowlabel);
-                       if (flowlabel == NULL)
+                       if (IS_ERR(flowlabel))
                                return -EINVAL;
                        fl6_sock_release(flowlabel);
                }