[PATCH] Fix big endian ext2 bmap in 2.2.

From: Andi Kleen (ak@suse.de)
Date: Tue Sep 19 2000 - 17:50:06 EST


This patch fixes an obvious bug introduced with the ext2 changes in 2.2.18pre
(look up the definition of le32_to_cpu on BE machines without a special
assembler version for it and on machines that have it)

Patch against 2.2.18pre9

-Andi

--- linux-work/fs/ext2/inode.c-EXT2 Fri Sep 15 02:06:16 2000
+++ linux-work/fs/ext2/inode.c Wed Sep 20 00:47:36 2000
@@ -215,7 +215,8 @@
                 bh = bread (inode->i_dev, i, inode->i_sb->s_blocksize);
                 if (!bh)
                         goto fail;
- i = le32_to_cpu(((u32 *) bh->b_data)[*++p]);
+ ++p;
+ i = le32_to_cpu(((u32 *) bh->b_data)[*p]);
                 brelse (bh);
         }
         return i;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:21 EST