summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2019-12-05 13:41:22 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2019-12-05 13:41:22 +0000
commit1e0006e49ca0f084d34cd57cae79204568498c4b (patch)
tree220fdff99c5883385d0ab33198f4bb6494f50e77
parent3eeb8a1fba373c7ff6b274694c17da1459974bf4 (diff)
Notes
-rw-r--r--sys/fs/nullfs/null_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index c024266b22cf7..cf7aed525845a 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -113,6 +113,8 @@ null_hashget(mp, lowervp)
* reference count (but NOT the lower vnode's VREF counter).
*/
hd = NULL_NHASH(lowervp);
+ if (LIST_EMPTY(hd))
+ return (NULLVP);
rw_rlock(&null_hash_lock);
LIST_FOREACH(a, hd, null_hash) {
if (a->null_lowervp == lowervp && NULLTOV(a)->v_mount == mp) {