Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137388410
D38503.id116980.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
D38503.id116980.diff
View Options
diff --git a/sys/fs/ext2fs/ext2_lookup.c b/fs/ext2fs/ext2_lookup.c
--- a/sys/fs/ext2fs/ext2_lookup.c
+++ b/fs/ext2fs/ext2_lookup.c
@@ -539,8 +539,8 @@
if (entryoffsetinblock + EXT2_DIR_REC_LEN(ep->e2d_namlen) >
dp->i_size) {
ext2_dirbad(dp, i_offset, "i_size too small");
- dp->i_size = entryoffsetinblock + EXT2_DIR_REC_LEN(ep->e2d_namlen);
- dp->i_flag |= IN_CHANGE | IN_UPDATE;
+ brelse(bp);
+ return (EIO);
}
brelse(bp);
@@ -803,7 +803,7 @@
mp = ITOV(ip)->v_mount;
if ((mp->mnt_flag & MNT_RDONLY) == 0)
- panic("ext2_dirbad: %s: bad dir ino %ju at offset %ld: %s\n",
+ printf("ext2_dirbad: %s: bad dir ino %ju at offset %ld: %s\n",
mp->mnt_stat.f_mntonname, (uintmax_t)ip->i_number,
(long)offset, how);
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 24, 12:23 AM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26039943
Default Alt Text
D38503.id116980.diff (758 B)
Attached To
Mode
D38503: Do not panic in case of corrupted directory
Attached
Detach File
Event Timeline
Log In to Comment