1
0
Fork 0

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>
hifive-unleashed-5.1
Tim Gardner 2013-02-12 10:56:54 -07:00 committed by Tyler Hicks
parent a07c48ad5b
commit 3a46741804
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}