From: Steffen Trumtrar Subject: [PATCH v4 1/4] crypto: sahara - fix spinlock initialization Date: Mon, 1 Dec 2014 13:26:31 +0100 Message-ID: <1417436794-7804-2-git-send-email-s.trumtrar@pengutronix.de> References: <1417436794-7804-1-git-send-email-s.trumtrar@pengutronix.de> Cc: linux-crypto@vger.kernel.org, kernel@pengutronix.de, Steffen Trumtrar To: Herbert Xu , "David S. Miller" Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:37801 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753044AbaLAM1J (ORCPT ); Mon, 1 Dec 2014 07:27:09 -0500 In-Reply-To: <1417436794-7804-1-git-send-email-s.trumtrar@pengutronix.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: The driver uses a spinlock, but never initializes it. Fix this. Signed-off-by: Steffen Trumtrar --- drivers/crypto/sahara.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.1.3