projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66be895
)
crypto: n2 - Fix a get/put_cpu() imbalance
author
Thomas Meyer
<thomas@m3y3r.de>
Mon, 15 Aug 2011 07:20:19 +0000
(15:20 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 15 Aug 2011 07:20:19 +0000
(15:20 +0800)
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>
drivers/crypto/n2_core.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/n2_core.c
b/drivers/crypto/n2_core.c
index
d0183dd
..
8944dab
100644
(file)
--- 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;
}