diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2013-02-12 12:56:54 -0500 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2013-02-12 13:06:01 -0500 |
commit | 3a46741804a4226cd837d1246eed95d4161f7159 (patch) | |
tree | 85e2fcbcc0a3a8b05e081c083da347ba2dcfdd72 /fs/ecryptfs | |
parent | a07c48ad5be5cbf32a2741f10e6fbf4bbfcaa362 (diff) |
eCryptfs: decrypt_pki_encrypted_session_key(): remove kfree() redundant null check
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>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r-- | fs/ecryptfs/keystore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c index 6154cde3a052..5aceff202dc0 100644 --- 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, | |||
1202 | crypt_stat->key_size); | 1202 | crypt_stat->key_size); |
1203 | } | 1203 | } |
1204 | out: | 1204 | out: |
1205 | if (msg) | 1205 | kfree(msg); |
1206 | kfree(msg); | ||
1207 | return rc; | 1206 | return rc; |
1208 | } | 1207 | } |
1209 | 1208 | ||