]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: sahara - fix spinlock initialization
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>
Mon, 1 Dec 2014 12:26:31 +0000 (13:26 +0100)
committerHerbert 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

index 164e1ec624e3c7e2a9ca6234a8100f98cec8894d..6fb16fe7eea55433d6fa8bbfa69575f477902b62 100644 (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,