summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2011-08-15 15:20:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2011-08-15 15:20:19 +0800
commite27303b25611e9a9ba78c0b5614abeb173d6cc74 (patch)
tree1e7c2d974aaa0aa6b6475ea136dd5990d627e5c1
parent66be895158886a6cd816aa1eaa18965a5c522d8f (diff)
downloadlinux-3.10-e27303b25611e9a9ba78c0b5614abeb173d6cc74.tar.gz
linux-3.10-e27303b25611e9a9ba78c0b5614abeb173d6cc74.tar.bz2
linux-3.10-e27303b25611e9a9ba78c0b5614abeb173d6cc74.zip
crypto: n2 - Fix a get/put_cpu() imbalance
Fix a get/put_cpu() imbalance in the error case when qp == NULL Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/n2_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index d0183ddb307..8944dabc0e3 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -1006,9 +1006,9 @@ static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt)
spin_unlock_irqrestore(&qp->lock, flags);
+out:
put_cpu();
-out:
n2_chunk_complete(req, NULL);
return err;
}
@@ -1096,9 +1096,9 @@ static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt)
spin_unlock_irqrestore(&qp->lock, flags);
+out:
put_cpu();
-out:
n2_chunk_complete(req, err ? NULL : final_iv_addr);
return err;
}