aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorSantosh kumar pradhan <santoshkumar.pradhan@wdc.com>2019-01-09 22:08:26 +0530
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-01-09 16:54:23 -0500
commite7f45099442a380f8e087b6a8aadc36e887df1cc (patch)
treef4d52fa6d48ec46196ab5f4c37402d79bc31d91a /net/sunrpc/auth.c
parentSUNRPC: Fix TCP receive code on archs with flush_dcache_page() (diff)
downloadlinux-dev-e7f45099442a380f8e087b6a8aadc36e887df1cc.tar.xz
linux-dev-e7f45099442a380f8e087b6a8aadc36e887df1cc.zip
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
};
/*