Add two missing LIST_INIT()s.

This patch adds two missing LIST_INIT()s. Found by inspection.
In practice, these are currently no-ops, since the structure they are
in is malloc'd with M_ZERO and all LIST_INIT does is set the pointer
in the list head to NULL. (In other words, the M_ZERO has already
correctly initialized it.)

MFC after:	2 months
This commit is contained in:
Rick Macklem 2018-05-02 20:36:11 +00:00
parent 952e75c763
commit 858bb2fc1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333183

View file

@ -387,6 +387,7 @@ nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash) LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash)
tstp->ls_clp = new_clp; tstp->ls_clp = new_clp;
} }
LIST_INIT(&new_clp->lc_session);
LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp, LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp,
lc_hash); lc_hash);
nfsstatsv1.srvclients++; nfsstatsv1.srvclients++;
@ -451,6 +452,7 @@ nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash) LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash)
tstp->ls_clp = new_clp; tstp->ls_clp = new_clp;
} }
LIST_INIT(&new_clp->lc_session);
LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp, LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp,
lc_hash); lc_hash);
nfsstatsv1.srvclients++; nfsstatsv1.srvclients++;