sunrpc: kernel BUG at kernel/cred.c:825!
diff mbox series

Message ID 20190109163826.2851-1-santoshkumar.pradhan@wdc.com
State New
Headers show
Series
  • sunrpc: kernel BUG at kernel/cred.c:825!
Related show

Commit Message

Santosh kumar pradhan Jan. 9, 2019, 4:38 p.m. UTC
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>
---
 net/sunrpc/auth.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Schumaker, Anna Jan. 10, 2019, 3:53 p.m. UTC | #1
On Wed, 2019-01-09 at 22:08 +0530, Santosh kumar pradhan wrote:
> 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>

This patch looks good to me, thanks!

Anna

> ---
>  net/sunrpc/auth.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> 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
>  };
> 
>  /*
> --
> 2.20.1
>

Patch
diff mbox series

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
 };
 
 /*