mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
pseudofs: fix off by one in hash iteration in pfs_purge
Sponsored by: Dell Technologies Differential Revision: https://reviews.freebsd.org/D42628 (cherry picked from commit e0d0f0930ee22af7bf38d28d8590d4e6c822871d)
This commit is contained in:
parent
34c7691f53
commit
94bddd2ab7
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ pfs_purge(struct pfs_node *pn)
|
|||
mtx_lock(&pfs_vncache_mutex);
|
||||
restart:
|
||||
removed = 0;
|
||||
for (i = 0; i < pfs_vncache_hash; i++) {
|
||||
for (i = 0; i <= pfs_vncache_hash; i++) {
|
||||
restart_chain:
|
||||
SLIST_FOREACH(pvd, &pfs_vncache_hashtbl[i], pvd_hash) {
|
||||
if (pn != NULL && pvd->pvd_pn != pn)
|
||||
|
|
|
|||
Loading…
Reference in a new issue