mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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:
parent
952e75c763
commit
858bb2fc1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333183
|
@ -387,6 +387,7 @@ nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
|
|||
LIST_FOREACH(tstp, &new_clp->lc_stateid[i], ls_hash)
|
||||
tstp->ls_clp = new_clp;
|
||||
}
|
||||
LIST_INIT(&new_clp->lc_session);
|
||||
LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp,
|
||||
lc_hash);
|
||||
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)
|
||||
tstp->ls_clp = new_clp;
|
||||
}
|
||||
LIST_INIT(&new_clp->lc_session);
|
||||
LIST_INSERT_HEAD(NFSCLIENTHASH(new_clp->lc_clientid), new_clp,
|
||||
lc_hash);
|
||||
nfsstatsv1.srvclients++;
|
||||
|
|
Loading…
Reference in a new issue