diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index a112808cad39..6101f186f938 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -763,6 +763,8 @@ cache_negative_shrink_select(int start, struct namecache **ncpp, struct namecache *ncp; int i; + *ncpp = ncp = NULL; + for (i = start; i < numneglists; i++) { neglist = &neglists[i]; if (TAILQ_FIRST(&neglist->nl_list) == NULL)