ext4 crypto: exit cleanly if ext4_derive_key_aes() fails
authorLaurent Navet <laurent.navet@gmail.com>
Wed, 22 Jul 2015 04:08:08 +0000 (00:08 -0400)
committerIan Chang <ianc@nvidia.com>
Wed, 1 Jun 2016 05:00:06 +0000 (13:00 +0800)
commitfd8dfe3c659b1d54eefabbe04457fdd31b1d3dfd
tree0dc1de94afe389ef67f2914dd97124a3ee6ad112
parente56fc3364aa42d47ef7e8c088d01b88e5a995555
ext4 crypto: exit cleanly if ext4_derive_key_aes() fails

Return value of ext4_derive_key_aes() is stored but not used.
Add test to exit cleanly if ext4_derive_key_aes() fail.
Also fix coverity CID 1309760.

Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: "Theodore Ts'o" <tytso@google.com>
Change-Id: I796cdfc65386e546f332a3dbbf9f2c2cd76e3301
Reviewed-on: http://git-master/r/1154517
Reviewed-by: Ian Chang <ianc@nvidia.com>
Tested-by: Ian Chang <ianc@nvidia.com>
fs/ext4/crypto_key.c