From: Roberto Sassu Date: Wed, 6 Oct 2010 16:31:06 +0000 (+0200) Subject: ecryptfs: release keys loaded in ecryptfs_keyring_auth_tok_for_sig() X-Git-Tag: v2.6.37-rc1~34^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aee683b9e77e17237b0e146025c3d363c9203634;p=pandora-kernel.git ecryptfs: release keys loaded in ecryptfs_keyring_auth_tok_for_sig() This patch allows keys requested in the function ecryptfs_keyring_auth_tok_for_sig()to be released when they are no longer required. In particular keys are directly released in the same function if the obtained authentication token is not valid. Further, a new function parameter 'auth_tok_key' has been added to ecryptfs_find_auth_tok_for_sig() in order to provide callers the key pointer to be passed to key_put(). Signed-off-by: Roberto Sassu Cc: Dustin Kirkland Cc: James Morris [Tyler: Initialize auth_tok_key to NULL in ecryptfs_parse_packet_set] Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed