projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43c239
)
crypto: sahara - fix spinlock initialization
author
Steffen Trumtrar
<s.trumtrar@pengutronix.de>
Mon, 1 Dec 2014 12:26:31 +0000
(13:26 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 3 Dec 2014 14:30:16 +0000
(22:30 +0800)
The driver uses a spinlock, but never initializes it.
Fix this.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/crypto/sahara.c
b/drivers/crypto/sahara.c
index 164e1ec624e3c7e2a9ca6234a8100f98cec8894d..6fb16fe7eea55433d6fa8bbfa69575f477902b62 100644
(file)
--- a/
drivers/crypto/sahara.c
+++ b/
drivers/crypto/sahara.c
@@
-956,6
+956,8
@@
static int sahara_probe(struct platform_device *pdev)
crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH);
+ spin_lock_init(&dev->lock);
+
dev_ptr = dev;
tasklet_init(&dev->queue_task, sahara_aes_queue_task,