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>
This commit is contained in:
Steffen Trumtrar 2014-12-01 13:26:31 +01:00 committed by Herbert Xu
parent f43c239407
commit 20ec9d814e
1 changed files with 2 additions and 0 deletions

View File

@ -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,