diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2013-02-12 18:56:54 +0100 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2013-02-12 19:06:01 +0100 |
commit | 3a46741804a4226cd837d1246eed95d4161f7159 (patch) | |
tree | 85e2fcbcc0a3a8b05e081c083da347ba2dcfdd72 /fs/ecryptfs | |
parent | eCryptfs: remove unneeded checks in virt_to_scatterlist() (diff) | |
download | linux-3a46741804a4226cd837d1246eed95d4161f7159.tar.xz linux-3a46741804a4226cd837d1246eed95d4161f7159.zip |
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, crypt_stat->key_size); } out: - if (msg) - kfree(msg); + kfree(msg); return rc; } |