mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[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>
This commit is contained in:
parent
2de6c39f38
commit
7bd473fcc2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user