crypto: dont return PTR_ERR() of wrong pointer
PATCH 1/1 crypto: dont return PTR_ERR() of wrong pointer
Fix a PTR_ERR() return of the wrong pointer
Signed-off-by Roel Kluin <[email protected]>
--- drivers/crypto/mv_cesa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/crypto/mv_cesa.c +1 -1
@@ -857,7 +857,7 @@ static int mv_cra_hash_init(struct crypto_tfm *tfm, const char *base_hash_name, printk(KERN_WARNING MV_CESA"Base driver '%s' could not be loaded!\n" , base_hash_name); - err =PTR_ERR (fallback_tfm); + err =PTR_ERR (base_hash); goto err_bad_base; } }
Quoted 3 lines · roel kluin
Fix a
PTR_ERR()return of the wrong pointerSigned-off-by Roel Kluin <[email protected]>
Patch applied. Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt