[Tux3] [PATCH] Initialize sb->atable in tux3fs to not segfault on any sync_super :)
Shapor Naghibzadeh
shapor at gmail.com
Tue Sep 16 22:10:34 PDT 2008
# HG changeset patch
# User shapor at yzf.shapor.com
# Date 1221628221 25200
# Node ID 0a05cf36860627016f136e1db436caeea639b09c
# Parent aab609f709eb84c9d0b8062cbde77fb2d9f09d20
Initialize sb->atable in tux3fs to not segfault on any sync_super :)
diff -r aab609f709eb -r 0a05cf368606 user/test/tux3fs.c
--- a/user/test/tux3fs.c Tue Sep 16 17:40:32 2008 -0700
+++ b/user/test/tux3fs.c Tue Sep 16 22:10:21 2008 -0700
@@ -292,6 +292,8 @@ int main(int argc, char *argv[])
goto nomem;
if (!(sb->rootdir = new_inode(sb, 0xd)))
goto nomem;
+ if (!(sb->atable = new_inode(sb, 0xa)))
+ goto nomem;
if ((errno = -open_inode(sb->bitmap)))
goto eek;
if ((errno = -open_inode(sb->rootdir)))
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list