[PATCH 6/7] keys: Add a keyctl to move a key between keyrings
David Howells
dhowells at redhat.com
Wed May 29 21:34:44 UTC 2019
James Morris <jmorris at namei.org> wrote:
> > +
> > + if (flags & ~KEYCTL_MOVE_EXCL)
> > + return -EINVAL;
> > +
> > + key_ref = lookup_user_key(id, KEY_LOOKUP_CREATE, KEY_NEED_LINK);
> > + if (IS_ERR(key_ref)) {
> > + ret = PTR_ERR(key_ref);
> > + goto error;
> > + }
>
> This could probably be a simple return, as there is no cleanup.
Changed.
David
More information about the Linux-security-module-archive
mailing list