Lines Matching defs:uctx
470 struct xfrm_user_sec_ctx *uctx = NULL;
473 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp);
475 if (!uctx)
478 uctx->len = pfkey_sec_ctx_len(sec_ctx);
479 uctx->exttype = sec_ctx->sadb_x_sec_exttype;
480 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi;
481 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg;
482 uctx->ctx_len = sec_ctx->sadb_x_ctx_len;
483 memcpy(uctx + 1, sec_ctx + 1,
484 uctx->ctx_len);
486 return uctx;
1158 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
1160 if (!uctx)
1163 err = security_xfrm_state_alloc(x, uctx);
1164 kfree(uctx);
2304 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
2306 if (!uctx) {
2311 err = security_xfrm_policy_alloc(&xp->security, uctx, GFP_KERNEL);
2312 kfree(uctx);
2406 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
2408 if (!uctx)
2411 err = security_xfrm_policy_alloc(&pol_ctx, uctx, GFP_KERNEL);
2412 kfree(uctx);
3330 struct xfrm_user_sec_ctx *uctx;
3341 uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_ATOMIC);
3342 *dir = security_xfrm_policy_alloc(&xp->security, uctx, GFP_ATOMIC);
3343 kfree(uctx);