[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1436385339.2682.93.camel@perches.com>
Date: Wed, 08 Jul 2015 12:55:39 -0700
From: Joe Perches <joe@...ches.com>
To: Laurent Navet <laurent.navet@...il.com>
Cc: tytso@....edu, adilger.kernel@...ger.ca,
linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ext4 crypto: remove unneeded assignation
On Wed, 2015-07-08 at 21:51 +0200, Laurent Navet wrote:
> Return value of ext4_derive_key_aes() is stored but never used before
> being overwritten.
> Also fix coverity CID 1309760.
>
> Signed-off-by: Laurent Navet <laurent.navet@...il.com>
> ---
> fs/ext4/crypto_key.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ext4/crypto_key.c b/fs/ext4/crypto_key.c
> index 442d24e..92f9172 100644
> --- a/fs/ext4/crypto_key.c
> +++ b/fs/ext4/crypto_key.c
> @@ -218,7 +218,7 @@ retry:
> BUILD_BUG_ON(EXT4_AES_128_ECB_KEY_SIZE !=
> EXT4_KEY_DERIVATION_NONCE_SIZE);
> BUG_ON(master_key->size != EXT4_AES_256_XTS_KEY_SIZE);
> - res = ext4_derive_key_aes(ctx.nonce, master_key->raw,
> + ext4_derive_key_aes(ctx.nonce, master_key->raw,
> raw_key);
More likely this should be:
res = ext4_derive_key_aes(,,,);
if (res)
goto out;
> got_key:
> ctfm = crypto_alloc_ablkcipher(cipher_str, 0, 0);
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists