/* attach the data */ 
static int user_instantiate(struct key *key, const void *data, size_t datalen){	int ret;	ret = -EINVAL;	if (datalen <= 0 || datalen > 32767 || !data)		goto error;	ret = key_payload_reserve(key, datalen);	if (ret < 0)		goto error;	/* attach the data */	ret = -ENOMEM;	key->payload.data = kmalloc(datalen, GFP_KERNEL);	if (!key->payload.data)		goto error;	memcpy(key->payload.data, data, datalen);	ret = 0; error:	return ret;} /* end user_instantiate() */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/76d8aeabfeb1c42641a81c44280177b9a08670d8/user_defined.c/clean/security/keys/user_defined.c