]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: public_key - Make sig/tfm local to if clause in software_key_query
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:48:26 +0000 (15:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Apr 2025 02:41:47 +0000 (10:41 +0800)
commit02db42856e430a915b8f9d7074a51910d2184134
tree20c378be982435177d52288a2eb24fb97718816f
parentddd0855fa3c3f1de020ab3aeddce15fe38e116f7
crypto: public_key - Make sig/tfm local to if clause in software_key_query

The recent code changes in this function triggered a false-positive
maybe-uninitialized warning in software_key_query.  Rearrange the
code by moving the sig/tfm variables into the if clause where they
are actually used.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/public_key.c