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)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 28 Mar 2011 06:49:15 +0000 (01:49 -0500)
commit1821df040ac3cd6a57518739f345da6d50ea9d3f
treeca353d7cdde5c3bcaa5d9657d8f20d124dbdd3cd
parent50f198ae16ac66508d4b8d5a40967a8507ad19ee
eCryptfs: ecryptfs_keyring_auth_tok_for_sig() bug fix

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>
Cc: <stable@kernel.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/keystore.c