diff options
author | Stefan Roese <sr@denx.de> | 2006-01-18 20:05:34 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2006-01-18 20:05:34 +0100 |
commit | a7b9fb9110e3c0be644b3e2c8f397f606138a710 (patch) | |
tree | 37d161379024789efa1a579482df722835e80420 /fs/ext2 | |
parent | 2076d0a15ff1dba2b46d96e81d02d625254611ff (diff) | |
download | u-boot-imx-a7b9fb9110e3c0be644b3e2c8f397f606138a710.zip u-boot-imx-a7b9fb9110e3c0be644b3e2c8f397f606138a710.tar.gz u-boot-imx-a7b9fb9110e3c0be644b3e2c8f397f606138a710.tar.bz2 |
Add VGA support (CT69000) to CPCI750 board.
Insert missing __le32_to_cpu() for filesize in ext2fs_read_file().
Patch by Reinhard Arlt, 30 Dec 2005
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/ext2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index c21d2d6..9cf2fb7 100644 --- a/fs/ext2/ext2fs.c +++ b/fs/ext2/ext2fs.c @@ -389,7 +389,7 @@ int ext2fs_read_file int blockcnt; int log2blocksize = LOG2_EXT2_BLOCK_SIZE (node->data); int blocksize = 1 << (log2blocksize + DISK_SECTOR_BITS); - unsigned int filesize = node->inode.size; + unsigned int filesize = __le32_to_cpu(node->inode.size); /* Adjust len so it we can't read past the end of the file. */ if (len > filesize) { |