summaryrefslogtreecommitdiffstats
path: root/fix-crypto-api-init-for-3-6-4-rt10.patch
blob: 07c4ee483af7aeff7ce448b73269d90761b32007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Subject: crypto: Remove duplicate srcu init
From: Milan Broz <mbroz@redhat.com>
Date: Tue, 30 Oct 2012 16:27:18 +0100

In peterz-srcu-crypto-chain.patch the blocking notifier is changed to
srcu notifier and added initialization to module init fucntion.
Later, in crypto-make-core-static-and-init-scru-early.patch, is that
initialization added also to core_initcall(), but not removed from
Peter's patch. So the initializer is called twice which can wipe out
already registered notifiers. This cause a failure in initialization
of larval algorithms, like e.g. cbc(aes).

Remove the old one.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Cc: Tvrtko Ursulin <tvrtko@ursulin.net>
Cc: dm-crypt@saout.de
Cc: okozina@redhat.com
Cc: u.kleine-koenig@pengutronix.de
Link: http://lkml.kernel.org/r/508FF1D6.3030900@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 crypto/algapi.c |    1 -
 1 file changed, 1 deletion(-)

Index: linux-stable/crypto/algapi.c
===================================================================
--- linux-stable.orig/crypto/algapi.c
+++ linux-stable/crypto/algapi.c
@@ -956,7 +956,6 @@ EXPORT_SYMBOL_GPL(crypto_xor);
 
 static int __init crypto_algapi_init(void)
 {
-	srcu_init_notifier_head(&crypto_chain);
 	crypto_init_proc();
 	return 0;
 }