/* call to complete the construction of a key  */
void complete_request_key(struct key_construction *cons, int error)
/* call to complete the construction of a key  */
void complete_request_key(struct key_construction *cons, int error)
{
	kenter("{%d,%d},%d", cons->key->serial, cons->authkey->serial, error);
	if (error < 0)
		key_negate_and_link(cons->key, key_negative_timeout, NULL,
				    cons->authkey);
	else
		key_revoke(cons->authkey);
	key_put(cons->key);
	key_put(cons->authkey);
	kfree(cons);
}