diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-15 16:53:33 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-15 16:53:33 +0800 |
commit | b5ebd44eb7559ea6135d536bafd02323d2ef0547 (patch) | |
tree | 519daaeb7d3b913ec6893ae91de3971ee5314651 /crypto/xcbc.c | |
parent | 3b3fc322d9c92e8bbfcecf739f1a3d10ded7f2cd (diff) | |
download | linux-stable-b5ebd44eb7559ea6135d536bafd02323d2ef0547.tar.gz linux-stable-b5ebd44eb7559ea6135d536bafd02323d2ef0547.tar.bz2 linux-stable-b5ebd44eb7559ea6135d536bafd02323d2ef0547.zip |
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>
Diffstat (limited to 'crypto/xcbc.c')
-rw-r--r-- | crypto/xcbc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/xcbc.c b/crypto/xcbc.c index b2cc8551b99f..3b991bf2fd92 100644 --- a/crypto/xcbc.c +++ b/crypto/xcbc.c @@ -252,6 +252,7 @@ static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) } inst = shash_alloc_instance("xcbc", alg); + err = PTR_ERR(inst); if (IS_ERR(inst)) goto out_put_alg; |