diff options
author | Eric Sandeen <sandeen@redhat.com> | 2007-12-17 16:19:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-17 19:28:15 -0800 |
commit | 459e216429a04779216b61f0fb61938a459fd1ca (patch) | |
tree | ed21241e197acdc1162a5c1bc3b48c21a33ed40f /Documentation | |
parent | 60af880339aae440293a0c8e93178fdcb41f8a29 (diff) | |
download | linux-3.10-459e216429a04779216b61f0fb61938a459fd1ca.tar.gz linux-3.10-459e216429a04779216b61f0fb61938a459fd1ca.tar.bz2 linux-3.10-459e216429a04779216b61f0fb61938a459fd1ca.zip |
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 <sandeen@redhat.com>
Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions