Эх сурвалжийг харах

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>
Steffen Trumtrar 10 жил өмнө
parent
commit
20ec9d814e

+ 2 - 0
drivers/crypto/sahara.c

@@ -956,6 +956,8 @@ static int sahara_probe(struct platform_device *pdev)
 
 
 	crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH);
 	crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH);
 
 
+	spin_lock_init(&dev->lock);
+
 	dev_ptr = dev;
 	dev_ptr = dev;
 
 
 	tasklet_init(&dev->queue_task, sahara_aes_queue_task,
 	tasklet_init(&dev->queue_task, sahara_aes_queue_task,