diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2013-02-12 10:56:54 -0700 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2013-02-12 10:06:01 -0800 |
commit | 3a46741804a4226cd837d1246eed95d4161f7159 (patch) | |
tree | 85e2fcbcc0a3a8b05e081c083da347ba2dcfdd72 /fs/ecryptfs | |
parent | a07c48ad5be5cbf32a2741f10e6fbf4bbfcaa362 (diff) | |
download | op-kernel-dev-3a46741804a4226cd837d1246eed95d4161f7159.zip op-kernel-dev-3a46741804a4226cd837d1246eed95d4161f7159.tar.gz |
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 6154cde..5aceff2 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, crypt_stat->key_size); } out: - if (msg) - kfree(msg); + kfree(msg); return rc; } |