projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2de6c39
)
[PATCH] eCryptfs: Fix pointer deref
author
Michael Halcrow
<mhalcrow@us.ibm.com>
Fri, 3 Nov 2006 06:06:56 +0000
(22:06 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 3 Nov 2006 20:27:55 +0000
(12:27 -0800)
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>
fs/ecryptfs/crypto.c
patch
|
blob
|
history
diff --git
a/fs/ecryptfs/crypto.c
b/fs/ecryptfs/crypto.c
index
f49f105
..
136175a
100644
(file)
--- 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;
}