X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/21362eb3e66fd2c787aee132bce100a44d71a99c..4452a7af2eac33dbad800bcc91f2399d62c18f53:/bsd/nfs/nfs_socket.c diff --git a/bsd/nfs/nfs_socket.c b/bsd/nfs/nfs_socket.c index f0ca1838e..1f4fda19e 100644 --- a/bsd/nfs/nfs_socket.c +++ b/bsd/nfs/nfs_socket.c @@ -316,7 +316,6 @@ nfs_bind_resv_nopriv(struct nfsmount *nmp) if (nfs_bind_resv_thread_state < NFS_BIND_RESV_THREAD_STATE_RUNNING) { if (nfs_bind_resv_thread_state < NFS_BIND_RESV_THREAD_STATE_INITTED) { nfs_bind_resv_lck_grp_attr = lck_grp_attr_alloc_init(); - lck_grp_attr_setstat(nfs_bind_resv_lck_grp_attr); nfs_bind_resv_lck_grp = lck_grp_alloc_init("nfs_bind_resv", nfs_bind_resv_lck_grp_attr); nfs_bind_resv_lck_attr = lck_attr_alloc_init(); nfs_bind_resv_mutex = lck_mtx_alloc_init(nfs_bind_resv_lck_grp, nfs_bind_resv_lck_attr); @@ -2746,8 +2745,8 @@ nfs_getreq(nd, nfsd, has_header) nd->nd_dpos = dpos; return (0); nfsmout: - if (nd->nd_cr) - kauth_cred_rele(nd->nd_cr); + if (IS_VALID_CRED(nd->nd_cr)) + kauth_cred_unref(&nd->nd_cr); return (error); }