Messages in this thread Patch in this message |  | | Date | Wed, 20 Sep 2000 00:50:06 +0200 | From | "Andi Kleen" <> | Subject | [PATCH] Fix big endian ext2 bmap in 2.2. |
| |
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/
|  |