commit | b5ebd44eb7559ea6135d536bafd02323d2ef0547 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jul 15 16:53:33 2009 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jul 15 16:53:33 2009 +0800 |
tree | 519daaeb7d3b913ec6893ae91de3971ee5314651 | |
parent | 3b3fc322d9c92e8bbfcecf739f1a3d10ded7f2cd [diff] [blame] |
crypto: xcbc - Fix incorrect error value when creating instance If shash_alloc_instance() fails, we return the wrong error value. This patch fixes it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
diff --git a/crypto/xcbc.c b/crypto/xcbc.c index b2cc855..3b991bf 100644 --- a/crypto/xcbc.c +++ b/crypto/xcbc.c
@@ -252,6 +252,7 @@ } inst = shash_alloc_instance("xcbc", alg); + err = PTR_ERR(inst); if (IS_ERR(inst)) goto out_put_alg;