key_put(key);
key_put(instkey);
long keyctl_negate_key(key_serial_t id, unsigned timeout, key_serial_t ringid){	struct key *key, *keyring;	long ret;	/* find the target key (which must be writable) */	key = lookup_user_key(id, 0, 1, KEY_WRITE);	if (IS_ERR(key)) {		ret = PTR_ERR(key);		goto error;	}	/* find the destination keyring if present (which must also be	 * writable) */	keyring = NULL;	if (ringid) {		keyring = lookup_user_key(ringid, 1, 0, KEY_WRITE);		if (IS_ERR(keyring)) {			ret = PTR_ERR(keyring);			goto error2;		}	}	/* instantiate the key and link it into a keyring */	ret = key_negate_and_link(key, timeout, keyring);	key_put(keyring); error2:	key_put(key); error:	return ret;} /* end keyctl_negate_key() */