Commit 41f2977d40798ce45f4da7a1291039ffbe9e1dbc

Authored by Roel Kluin
Committed by Herbert Xu
1 parent 3181c22587

crypto: mv_cesa - dont return PTR_ERR() of wrong pointer

Fix a PTR_ERR() return of the wrong pointer

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/crypto/mv_cesa.c
... ... @@ -857,7 +857,7 @@
857 857 printk(KERN_WARNING MV_CESA
858 858 "Base driver '%s' could not be loaded!\n",
859 859 base_hash_name);
860   - err = PTR_ERR(fallback_tfm);
  860 + err = PTR_ERR(base_hash);
861 861 goto err_bad_base;
862 862 }
863 863 }