Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a467418 authored by Tim Gardner's avatar Tim Gardner Committed by Tyler Hicks
Browse files

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: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
parent a07c48ad
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1202,7 +1202,6 @@ decrypt_pki_encrypted_session_key(struct ecryptfs_auth_tok *auth_tok,
				  crypt_stat->key_size);
	}
out:
	if (msg)
	kfree(msg);
	return rc;
}