Skip to content

Commit

Permalink
sunrpc: kernel BUG at kernel/cred.c:825!
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Santosh kumar pradhan authored and Anna Schumaker committed Jan 9, 2019
1 parent 6a829eb commit e7f4509
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/sunrpc/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

/*
Expand Down

0 comments on commit e7f4509

Please sign in to comment.