From: Eric Sandeen Date: Tue, 18 Dec 2007 00:19:52 +0000 (-0800) Subject: ecryptfs: initialize new auth_tokens before teardown X-Git-Tag: v2.6.24-rc6~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=459e216429a04779216b61f0fb61938a459fd1ca;p=pandora-kernel.git ecryptfs: initialize new auth_tokens before teardown ecryptfs_destroy_mount_crypt_stat() checks whether each auth_tok->global_auth_tok_key is nonzero and if so puts that key. However, in some early mount error paths nothing has initialized the pointer, and we try to key_put() garbage. Running the bad cipher tests in the testsuite exposes this, and it's happy with the following change. Signed-off-by: Eric Sandeen Cc: Michael Halcrow Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed