Skip to content

Commit

Permalink
eCryptfs: decrypt_pki_encrypted_session_key(): remove kfree() redunda…
Browse files Browse the repository at this point in the history
…nt 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>
  • Loading branch information
Tim Gardner authored and Tyler Hicks committed Feb 12, 2013
1 parent a07c48a commit 3a46741
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ecryptfs/keystore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a46741

Please sign in to comment.