aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/ext2fs
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-10-18 21:41:41 +0000
committerBruce Evans <bde@FreeBSD.org>2002-10-18 21:41:41 +0000
commiteb5b0bc42e2bd9517ce418b62a95f540f6625dce (patch)
tree8227525e1ae65cb6b5ed3cc9e55ec0a3247fa95c /sys/gnu/ext2fs
parent1a6b41467274b376a2b33380a59933ba1e2bb2fd (diff)
Notes
Diffstat (limited to 'sys/gnu/ext2fs')
-rw-r--r--sys/gnu/ext2fs/ext2_lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/ext2fs/ext2_lookup.c b/sys/gnu/ext2fs/ext2_lookup.c
index bddc3bbfa084..49caccfb8684 100644
--- a/sys/gnu/ext2fs/ext2_lookup.c
+++ b/sys/gnu/ext2fs/ext2_lookup.c
@@ -474,7 +474,6 @@ searchloop:
*/
dp->i_ino = ep->inode;
dp->i_reclen = ep->rec_len;
- brelse(bp);
goto found;
}
}
@@ -569,6 +568,7 @@ found:
dp->i_size = entryoffsetinblock+EXT2_DIR_REC_LEN(ep->name_len);
dp->i_flag |= IN_CHANGE | IN_UPDATE;
}
+ brelse(bp);
/*
* Found component in pathname.