Revision d636bd9f12a66ea3775c9fabbf3f8e118253467a authored by Eric Biggers on 08 June 2017, 13:48:03 UTC, committed by James Morris on 09 June 2017, 03:29:46 UTC
In join_session_keyring(), if install_session_keyring_to_cred() were to
fail, we would leak the keyring reference, just like in the bug fixed by
commit 23567fd052a9 ("KEYS: Fix keyring ref leak in
join_session_keyring()").  Fortunately this cannot happen currently, but
we really should be more careful.  Do this by adding and using a new
error label at which the keyring reference is dropped.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
1 parent 41f1c53
History
File Mode Size
kvm
lib
Makefile -rw-r--r-- 14 bytes

back to top