Searched refs:dcp (Results 1 – 1 of 1) sorted by relevance
2419 struct nfs_gss_clnt_ctx *dcp; in nfs_gss_clnt_ctx_copy() local2422 dcp = kalloc_type(struct nfs_gss_clnt_ctx, Z_WAITOK | Z_ZERO | Z_NOFAIL); in nfs_gss_clnt_ctx_copy()2423 lck_mtx_init(&dcp->gss_clnt_mtx, &nfs_gss_clnt_grp, LCK_ATTR_NULL); in nfs_gss_clnt_ctx_copy()2424 dcp->gss_clnt_cred = scp->gss_clnt_cred; in nfs_gss_clnt_ctx_copy()2425 kauth_cred_ref(dcp->gss_clnt_cred); in nfs_gss_clnt_ctx_copy()2426 dcp->gss_clnt_prinlen = scp->gss_clnt_prinlen; in nfs_gss_clnt_ctx_copy()2427 dcp->gss_clnt_prinnt = scp->gss_clnt_prinnt; in nfs_gss_clnt_ctx_copy()2429 dcp->gss_clnt_principal = kalloc_data(dcp->gss_clnt_prinlen, Z_WAITOK | Z_ZERO); in nfs_gss_clnt_ctx_copy()2430 if (dcp->gss_clnt_principal == NULL) { in nfs_gss_clnt_ctx_copy()2431 kfree_type(struct nfs_gss_clnt_ctx, dcp); in nfs_gss_clnt_ctx_copy()[all …]