projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a07c48a
)
eCryptfs: decrypt_pki_encrypted_session_key(): remove kfree() redundant null check
author
Tim Gardner
<tim.gardner@canonical.com>
Tue, 12 Feb 2013 17:56:54 +0000
(10:56 -0700)
committer
Tyler Hicks
<tyhicks@canonical.com>
Tue, 12 Feb 2013 18:06:01 +0000
(10:06 -0800)
smatch analysis:
fs/ecryptfs/keystore.c:1206 decrypt_pki_encrypted_session_key() info:
redundant null check on msg calling kfree()
Cc: Dustin Kirkland <dustin.kirkland@gazzang.com>
Cc: ecryptfs@vger.kernel.org
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/keystore.c
patch
|
blob
|
history
diff --git
a/fs/ecryptfs/keystore.c
b/fs/ecryptfs/keystore.c
index
6154cde
..
5aceff2
100644
(file)
--- a/
fs/ecryptfs/keystore.c
+++ b/
fs/ecryptfs/keystore.c
@@
-1202,8
+1202,7
@@
decrypt_pki_encrypted_session_key(struct ecryptfs_auth_tok *auth_tok,
crypt_stat->key_size);
}
out:
- if (msg)
- kfree(msg);
+ kfree(msg);
return rc;
}