Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1707354

Re: [PATCH] crypto: ccp - avoid uninitialized variable warning

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH] crypto: ccp - avoid uninitialized variable warning
Date 2017-08-09 16:00 +0200
Message-ID <uczGG-85m-11@gated-at.bofh.it> (permalink)
References <u9pXb-2wz-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 31, 2017 at 10:49:21PM +0200, Arnd Bergmann wrote:
> The added support for version 5 CCPs introduced a false-positive
> warning in the RSA implementation:
> 
> drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_rsa_cmd':
> drivers/crypto/ccp/ccp-ops.c:1856:3: error: 'sb_count' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> 
> This changes the code in a way that should make it easier for
> the compiler to track the state of the sb_count variable, and
> avoid the warning.
> 
> Fixes: 6ba46c7d4d7e ("crypto: ccp - Fix base RSA function for version 5 CCPs")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] crypto: ccp - avoid uninitialized variable warning Arnd Bergmann <arnd@arndb.de> - 2017-07-31 23:00 +0200
  Re: [PATCH] crypto: ccp - avoid uninitialized variable warning Arnd Bergmann <arnd@arndb.de> - 2017-08-01 22:40 +0200
  Re: [PATCH] crypto: ccp - avoid uninitialized variable warning Herbert Xu <herbert@gondor.apana.org.au> - 2017-08-09 16:00 +0200

csiph-web