Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #7 from mischief/CVE-2016-0728
Browse files Browse the repository at this point in the history
KEYS: Fix keyring ref leak in join_session_keyring()
  • Loading branch information
mischief committed Jan 19, 2016
2 parents 2c15b9d + fc94e26 commit 7c6c565
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/keys/process_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ long join_session_keyring(const char *name)
ret = PTR_ERR(keyring);
goto error2;
} else if (keyring == new->session_keyring) {
key_put(keyring);
ret = 0;
goto error2;
}
Expand Down

0 comments on commit 7c6c565

Please sign in to comment.