[PATCH] KEYS: remove unnecessary get/put of explicit dest_keyring
David Howells
dhowells at redhat.com
Fri Nov 24 21:24:30 UTC 2017
Eric Biggers <ebiggers3 at gmail.com> wrote:
> if (dest_keyring) {
> - construct_get_dest_keyring(&dest_keyring);
Actually, I think I have the order of these lines inverted.
construct_get_dest_keyring() can actually return without setting dest_keyring
to anything. This didn't used to be the case, but now that the user-session
keyring is made lazily, there's no guaranteed fallback.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the Linux-security-module-archive
mailing list