Skip to content

Commit e7f4509

Browse files
Santosh kumar pradhanamschuma-ntap
authored andcommitted
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>
1 parent 6a829eb commit e7f4509

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/sunrpc/auth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ static unsigned long number_cred_unused;
4141

4242
static struct cred machine_cred = {
4343
.usage = ATOMIC_INIT(1),
44+
#ifdef CONFIG_DEBUG_CREDENTIALS
45+
.magic = CRED_MAGIC,
46+
#endif
4447
};
4548

4649
/*

0 commit comments

Comments
 (0)