DivestOS/Patches/Linux_CVEs/CVE-2016-0728/4.1/0004.patch
2017-11-07 17:32:46 -05:00

13 lines
337 B
Diff

diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c
index bd536cb..db91639 100644
--- a/security/keys/process_keys.c
+++ b/security/keys/process_keys.c
@@ -794,6 +794,7 @@
ret = PTR_ERR(keyring);
goto error2;
} else if (keyring == new->session_keyring) {
+ key_put(keyring);
ret = 0;
goto error2;
}