summaryrefslogtreecommitdiff
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorSantosh kumar pradhan <santoshkumar.pradhan@wdc.com>2019-01-09 19:38:26 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-01-10 00:54:23 +0300
commite7f45099442a380f8e087b6a8aadc36e887df1cc (patch)
treef4d52fa6d48ec46196ab5f4c37402d79bc31d91a /net/sunrpc/auth.c
parent6a829eb8619fbdde6d7d627ad582fe119805f39d (diff)
downloadlinux-e7f45099442a380f8e087b6a8aadc36e887df1cc.tar.xz
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>
Diffstat (limited to 'net/sunrpc/auth.c')
-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;
static struct cred machine_cred = {
.usage = ATOMIC_INIT(1),
+#ifdef CONFIG_DEBUG_CREDENTIALS
+ .magic = CRED_MAGIC,
+#endif
};
/*