]> git.karo-electronics.de Git - karo-tx-linux.git/commit
eCryptfs: ecryptfs_keyring_auth_tok_for_sig() bug fix
authorRoberto Sassu <roberto.sassu@polito.it>
Thu, 17 Mar 2011 11:48:50 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:52:49 +0000 (16:52 -0700)
commit44ba654a299c0548b9c43f0bda33c1194734b85e
tree75d12cb06e478ffd36b853dfac93587815818025
parent87f1abd35f8fb40a4fb4c5f5e46b2efdffedfa26
eCryptfs: ecryptfs_keyring_auth_tok_for_sig() bug fix

commit 1821df040ac3cd6a57518739f345da6d50ea9d3f upstream.

The pointer '(*auth_tok_key)' is set to NULL in case request_key()
fails, in order to prevent its use by functions calling
ecryptfs_keyring_auth_tok_for_sig().

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/keystore.c