aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantosh kumar pradhan <santoshkumar.pradhan@wdc.com>2019-01-09 11:38:26 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-01-09 16:54:23 -0500
commite7f45099442a380f8e087b6a8aadc36e887df1cc (patch)
treef4d52fa6d48ec46196ab5f4c37402d79bc31d91a
parent6a829eb8619fbdde6d7d627ad582fe119805f39d (diff)
sunrpc: kernel BUG at kernel/cred.c:825!
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>
-rw-r--r--net/sunrpc/auth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 1ff9768f5456..f3023bbc0b7f 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -41,6 +41,9 @@ static unsigned long number_cred_unused;
41 41
42static struct cred machine_cred = { 42static struct cred machine_cred = {
43 .usage = ATOMIC_INIT(1), 43 .usage = ATOMIC_INIT(1),
44#ifdef CONFIG_DEBUG_CREDENTIALS
45 .magic = CRED_MAGIC,
46#endif
44}; 47};
45 48
46/* 49/*