--- /dev/null
+Index: linux-2.6.22/fs/ext3/namei.c
+===================================================================
+--- linux-2.6.22.orig/fs/ext3/namei.c 2007-11-15 13:41:18.000000000 +0100
++++ linux-2.6.22/fs/ext3/namei.c 2007-11-15 13:44:28.000000000 +0100
+@@ -1019,6 +1019,11 @@ static struct dentry *ext3_lookup(struct
+
+ if (!inode)
+ return ERR_PTR(-EACCES);
++
++ if (is_bad_inode(inode)) {
++ iput(inode);
++ return ERR_PTR(-ENOENT);
++ }
+ }
+ return d_splice_alias(inode, dentry);
+ }
+@@ -1054,6 +1059,11 @@ struct dentry *ext3_get_parent(struct de
+ if (!inode)
+ return ERR_PTR(-EACCES);
+
++ if (is_bad_inode(inode)) {
++ iput(inode);
++ return ERR_PTR(-ENOENT);
++ }
++
+ parent = d_alloc_anon(inode);
+ if (!parent) {
+ iput(inode);
ext3-inode-version-2.6.18-vanilla.patch
ext3-ea-expand-lose-block.patch
ext3-mmp-2.6.22-vanilla.patch
-#ext3-fiemap-2.6.22-vanilla.patch
+ext3-fiemap-2.6.22-vanilla.patch
ext3-statfs-2.6.22.patch
ext3-dynlocks-common.patch
ext3-dynlocks-2.6.22-vanilla.patch
ext3-iam-common.patch
-ext3-iam-2.6.22-vanilla.patch
+#ext3-iam-2.6.22-vanilla.patch
ext3-lookup-dotdot-2.6.9.patch
ext3-orphans-delay.patch
ext3-export-journal-api.patch
ext3-max-dir-size.patch
ext3-xattr-no-update-ctime-2.6-sles10.patch
+ext3-check-bad-inode.patch