From: Santosh kumar pradhan Date: Wed, 9 Jan 2019 16:38:26 +0000 (+0530) Subject: sunrpc: kernel BUG at kernel/cred.c:825! X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e7f45099442a380f8e087b6a8aadc36e887df1cc;p=linux.git sunrpc: kernel BUG at kernel/cred.c:825! Init missing debug member magic with CRED_MAGIC. Signed-off-by: Santosh kumar pradhan Reported-by: Dave Jones Signed-off-by: Anna Schumaker --- diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 1ff9768f54560..f3023bbc0b7fc 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 }; /*