Skip to content

Commit

Permalink
crypto: sahara - fix spinlock initialization
Browse files Browse the repository at this point in the history
The driver uses a spinlock, but never initializes it.
Fix this.

Signed-off-by: Steffen Trumtrar <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
strumtrar authored and herbertx committed Dec 3, 2014
1 parent f43c239 commit 20ec9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/crypto/sahara.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 20ec9d8

Please sign in to comment.