]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sunrpc: kernel BUG at kernel/cred.c:825!
authorSantosh kumar pradhan <santoshkumar.pradhan@wdc.com>
Wed, 9 Jan 2019 16:38:26 +0000 (22:08 +0530)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 9 Jan 2019 21:54:23 +0000 (16:54 -0500)
Init missing debug member magic with CRED_MAGIC.

Signed-off-by: Santosh kumar pradhan <santoshkumar.pradhan@wdc.com>
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/auth.c

index 1ff9768f545602dfa1d4db80c630321d4e86f6b8..f3023bbc0b7fcc292793fda4469e0c914b6ece93 100644 (file)
@@ -41,6 +41,9 @@ static unsigned long number_cred_unused;
 
 static struct cred machine_cred = {
        .usage = ATOMIC_INIT(1),
+#ifdef CONFIG_DEBUG_CREDENTIALS
+       .magic = CRED_MAGIC,
+#endif
 };
 
 /*