Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: starfive - Skip unneeded key free

Skip unneeded kfree_sensitive if RSA module is using falback algo.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Jia Jie Ho and committed by
Herbert Xu
a05c821e b6e9eb69

+3
+3
drivers/crypto/starfive/jh7110-rsa.c
··· 45 45 46 46 static void starfive_rsa_free_key(struct starfive_rsa_key *key) 47 47 { 48 + if (!key->key_sz) 49 + return; 50 + 48 51 kfree_sensitive(key->d); 49 52 kfree_sensitive(key->e); 50 53 kfree_sensitive(key->n);