summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-03-09 18:57:17 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-03-09 18:57:17 +0000
commit98846daf14127143ad4ae0eae55a1147ca85ddbc (patch)
tree8ab61c94c2e4e4df454b0bf4d0a6c640e218ef19 /sys
parentb408f6968ab9cdce3425e44f63ed929c1bb6d7e9 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ufs/ufs_lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c
index 728b5a6ef83c..13d1fffedfad 100644
--- a/sys/ufs/ufs/ufs_lookup.c
+++ b/sys/ufs/ufs/ufs_lookup.c
@@ -310,7 +310,6 @@ searchloop:
}
dp->i_ino = ep->d_ino;
dp->i_reclen = ep->d_reclen;
- brelse(bp);
goto found;
}
}
@@ -414,6 +413,7 @@ found:
dp->i_size = entryoffsetinblock + DIRSIZ(OFSFMT(vdp), ep);
dp->i_flag |= IN_CHANGE | IN_UPDATE;
}
+ brelse(bp);
/*
* Found component in pathname.