git: 627f1555f571 - main - nfscl: Initialize nfsess_badslots to zero

From: Rick Macklem <rmacklem_at_FreeBSD.org>
Date: Sat, 09 Jul 2022 23:13:25 UTC
The branch main has been updated by rmacklem:

URL: https://cgit.FreeBSD.org/src/commit/?id=627f1555f571b5328637dbfbe441ed89c84db20c

commit 627f1555f571b5328637dbfbe441ed89c84db20c
Author:     Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2022-07-09 23:12:31 +0000
Commit:     Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2022-07-09 23:12:31 +0000

    nfscl: Initialize nfsess_badslots to zero
    
    Commit 40ada74ee1da added a field to mark bad session slots.
    This patch ensures that the field is initialized to 0.
    
    PR: 260011
    MFC after:      2 weeks
---
 sys/fs/nfsclient/nfs_clrpcops.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index f5a74ecd7d65..ffb81b699017 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -6073,6 +6073,7 @@ nfscl_initsessionslots(struct nfsclsession *sep)
 	for (i = 0; i < 64; i++)
 		sep->nfsess_slotseq[i] = 0;
 	sep->nfsess_slots = 0;
+	sep->nfsess_badslots = 0;
 }
 
 /*