diff options
author | Santosh kumar pradhan <santoshkumar.pradhan@wdc.com> | 2019-01-09 22:08:26 +0530 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-01-09 16:54:23 -0500 |
commit | e7f45099442a380f8e087b6a8aadc36e887df1cc (patch) | |
tree | f4d52fa6d48ec46196ab5f4c37402d79bc31d91a /net | |
parent | 6a829eb8619fbdde6d7d627ad582fe119805f39d (diff) | |
download | linux-stable-e7f45099442a380f8e087b6a8aadc36e887df1cc.tar.gz linux-stable-e7f45099442a380f8e087b6a8aadc36e887df1cc.tar.bz2 linux-stable-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')
-rw-r--r-- | net/sunrpc/auth.c | 3 |
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 }; /* |