Skip to content

Commit

Permalink
crypto: mv_cesa - dont return PTR_ERR() of wrong pointer
Browse files Browse the repository at this point in the history
Fix a PTR_ERR() return of the wrong pointer

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
RoelKluin authored and herbertx committed Jan 4, 2011
1 parent 3181c22 commit 41f2977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/mv_cesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 41f2977

Please sign in to comment.