diff options
author | Michael Halcrow <mhalcrow@us.ibm.com> | 2006-11-02 22:06:56 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-11-03 12:27:55 -0800 |
commit | 7bd473fcc217adec000f213e8864bf9a161d57e1 (patch) | |
tree | ae9ee2396383d32ea443ef7131673e0522e53bf3 /fs/ecryptfs/crypto.c | |
parent | 2de6c39f389f25442389c3ab0f2d9b50e3f4a77d (diff) | |
download | kernel_samsung_aries-7bd473fcc217adec000f213e8864bf9a161d57e1.zip kernel_samsung_aries-7bd473fcc217adec000f213e8864bf9a161d57e1.tar.gz kernel_samsung_aries-7bd473fcc217adec000f213e8864bf9a161d57e1.tar.bz2 |
[PATCH] eCryptfs: Fix pointer deref
I missed a pointer dereference in this kmalloc result check.
Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ecryptfs/crypto.c')
-rw-r--r-- | fs/ecryptfs/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index f49f105..136175a 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c @@ -134,7 +134,7 @@ int ecryptfs_crypto_api_algify_cipher_name(char **algified_name, algified_name_len = (chaining_modifier_len + cipher_name_len + 3); (*algified_name) = kmalloc(algified_name_len, GFP_KERNEL); - if (!(algified_name)) { + if (!(*algified_name)) { rc = -ENOMEM; goto out; } |