]> err.no Git - linux-2.6/blobdiff - net/ipv6/ndisc.c
ocfs2: Unlock mutex in local alloc failure case
[linux-2.6] / net / ipv6 / ndisc.c
index d8b36451badac3a227e7258b62b6e7b3efd482fb..73a894a2152ca003b9c3de5bed0b8412d8aa42d7 100644 (file)
@@ -736,7 +736,7 @@ static void ndisc_recv_ns(struct sk_buff *skb)
                                 * so fail our DAD process
                                 */
                                addrconf_dad_failure(ifp);
-                               goto out;
+                               return;
                        } else {
                                /*
                                 * This is not a dad solicitation.
@@ -1062,7 +1062,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
        pref = ra_msg->icmph.icmp6_router_pref;
        /* 10b is handled as if it were 00b (medium) */
        if (pref == ICMPV6_ROUTER_PREF_INVALID ||
-           in6_dev->cnf.accept_ra_rtr_pref)
+           !in6_dev->cnf.accept_ra_rtr_pref)
                pref = ICMPV6_ROUTER_PREF_MEDIUM;
 #endif