• Home
  • Raw
  • Download

Lines Matching refs:ret

105 	int ret, i;  in call_sbin_request_key()  local
109 ret = install_user_keyrings(); in call_sbin_request_key()
110 if (ret < 0) in call_sbin_request_key()
122 ret = PTR_ERR(keyring); in call_sbin_request_key()
127 ret = key_link(keyring, authkey); in call_sbin_request_key()
128 if (ret < 0) in call_sbin_request_key()
175 ret = call_usermodehelper_keys(argv[0], argv, envp, keyring, in call_sbin_request_key()
177 kdebug("usermode -> 0x%x", ret); in call_sbin_request_key()
178 if (ret >= 0) { in call_sbin_request_key()
182 ret = -ENOKEY; in call_sbin_request_key()
186 ret = 0; in call_sbin_request_key()
193 complete_request_key(cons, ret); in call_sbin_request_key()
194 kleave(" = %d", ret); in call_sbin_request_key()
195 return ret; in call_sbin_request_key()
210 int ret; in construct_key() local
223 ret = PTR_ERR(authkey); in construct_key()
234 ret = actor(cons, "create", aux); in construct_key()
238 WARN_ON(ret < 0 && in construct_key()
243 kleave(" = %d", ret); in construct_key()
244 return ret; in construct_key()
258 int ret; in construct_get_dest_keyring() local
332 ret = key_permission(make_key_ref(dest_keyring, 1), in construct_get_dest_keyring()
334 if (ret) { in construct_get_dest_keyring()
336 return ret; in construct_get_dest_keyring()
363 int ret; in construct_alloc_key() local
388 ret = __key_link_begin(dest_keyring, &ctx->index_key, &edit); in construct_alloc_key()
389 if (ret < 0) in construct_alloc_key()
420 ret = __key_link_check_live_key(dest_keyring, key); in construct_alloc_key()
421 if (ret == 0) in construct_alloc_key()
424 if (ret < 0) in construct_alloc_key()
435 kleave(" = %d [linkcheck]", ret); in construct_alloc_key()
436 return ret; in construct_alloc_key()
441 kleave(" = %d [prelink]", ret); in construct_alloc_key()
442 return ret; in construct_alloc_key()
462 int ret; in construct_key_and_link() local
466 ret = construct_get_dest_keyring(&dest_keyring); in construct_key_and_link()
467 if (ret) in construct_key_and_link()
475 ret = -ENOMEM; in construct_key_and_link()
479 ret = construct_alloc_key(ctx, dest_keyring, flags, user, &key); in construct_key_and_link()
482 if (ret == 0) { in construct_key_and_link()
483 ret = construct_key(key, callout_info, callout_len, aux, in construct_key_and_link()
485 if (ret < 0) { in construct_key_and_link()
489 } else if (ret == -EINPROGRESS) { in construct_key_and_link()
490 ret = 0; in construct_key_and_link()
505 kleave(" = %d", ret); in construct_key_and_link()
506 return ERR_PTR(ret); in construct_key_and_link()
556 int ret; in request_key_and_link() local
563 ret = type->match_preparse(&ctx.match_data); in request_key_and_link()
564 if (ret < 0) { in request_key_and_link()
565 key = ERR_PTR(ret); in request_key_and_link()
577 ret = key_link(dest_keyring, key); in request_key_and_link()
579 if (ret < 0) { in request_key_and_link()
581 key = ERR_PTR(ret); in request_key_and_link()
619 int ret; in wait_for_key_construction() local
621 ret = wait_on_bit(&key->flags, KEY_FLAG_USER_CONSTRUCT, in wait_for_key_construction()
623 if (ret) in wait_for_key_construction()
653 int ret; in request_key() local
660 ret = wait_for_key_construction(key, false); in request_key()
661 if (ret < 0) { in request_key()
663 return ERR_PTR(ret); in request_key()
691 int ret; in request_key_with_auxdata() local
696 ret = wait_for_key_construction(key, false); in request_key_with_auxdata()
697 if (ret < 0) { in request_key_with_auxdata()
699 return ERR_PTR(ret); in request_key_with_auxdata()