diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2014-12-01 13:26:31 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-03 15:30:16 +0100 |
commit | 20ec9d814e6863c205ccc6dcb62cfa3043a4f76f (patch) | |
tree | adc551ad90450b2624af2d45cd646e383b0adceb /drivers/crypto/sahara.c | |
parent | crypto: arm - replace memset by memzero_explicit (diff) | |
download | linux-20ec9d814e6863c205ccc6dcb62cfa3043a4f76f.tar.xz linux-20ec9d814e6863c205ccc6dcb62cfa3043a4f76f.zip |
crypto: sahara - fix spinlock initialization
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>
Diffstat (limited to 'drivers/crypto/sahara.c')
-rw-r--r-- | drivers/crypto/sahara.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 164e1ec624e3..6fb16fe7eea5 100644 --- 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, |