lkml.org 
[lkml]   [2000]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 12:45    [W:2.686 / U:0.876 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site