On Fri, Jul 26, 2019 at 03:41:36PM -0700, Eric Biggers wrote:
> diff --git a/fs/crypto/keyring.c b/fs/crypto/keyring.c
> index 56e085c2ed8c6..307533d4d7c51 100644
> --- a/fs/crypto/keyring.c
> +++ b/fs/crypto/keyring.c
> + if (mk->mk_users->keys.nr_leaves_on_tree != 0) {
> + /*
> + * Other users have still added the key too. We removed
> + * the current user's usage of the key if there was one,
> + * but we still can't remove the key itself.
> + */
> + err = -EUSERS;
> + up_write(&key->sem);
> + goto out_put_key;
I commented about this on an earlier patch, but I'm not convinced we
should be returning EUSERS here. Returning success might be a better
choice.
- Ted
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel