summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs
diff options
context:
space:
mode:
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 bddc3bb..49caccf 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.
OpenPOWER on IntegriCloud