]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/if_llreach.c
xnu-4570.61.1.tar.gz
[apple/xnu.git] / bsd / net / if_llreach.c
index 2012d8c056c6cadab30b335fcd0aa6648c7d6887..29a449936f526660c63b57998301a4fbe31964c8 100644 (file)
@@ -320,7 +320,7 @@ found:
        if (!lck_rw_lock_shared_to_exclusive(&ifp->if_llreach_lock))
                lck_rw_lock_exclusive(&ifp->if_llreach_lock);
 
-       lck_rw_assert(&ifp->if_llreach_lock, LCK_RW_ASSERT_EXCLUSIVE);
+       LCK_RW_ASSERT(&ifp->if_llreach_lock, LCK_RW_ASSERT_EXCLUSIVE);
 
        /* in case things have changed while becoming writer */
        lr = RB_FIND(ll_reach_tree, &ifp->if_ll_srcs, &find);
@@ -626,7 +626,7 @@ sysctl_llreach_ifinfo SYSCTL_HANDLER_ARGS
        unsigned int    namelen;
        uint32_t        ifindex;
        struct if_llreach *lr;
-       struct if_llreach_info lri;
+       struct if_llreach_info lri = {};
        struct ifnet    *ifp;
 
        name = (int *)arg1;