summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTyler Hall <tylerwhall@gmail.com>2017-04-12 20:29:16 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-18 14:27:57 (GMT)
commita6ea791cb96f76fd600f6547a715e24ef66ba5e2 (patch)
tree595eae8139296318adf4ec3e3b84fcfc38ca10e1 /fs
parent511c66b1e659078de8692fdf2aa7d624f95110e1 (diff)
downloadu-boot-fsl-qoriq-a6ea791cb96f76fd600f6547a715e24ef66ba5e2.tar.xz
cramfs: block pointers are 32 bits
Using a variably-sized type is incorrect here since we're reading a fixed file format. Fixes cramfs on 64-bit platforms. Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cramfs/cramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cramfs/cramfs.c b/fs/cramfs/cramfs.c
index 05ed272..ca8bc5e 100644
--- a/fs/cramfs/cramfs.c
+++ b/fs/cramfs/cramfs.c
@@ -162,7 +162,7 @@ static int cramfs_uncompress (unsigned long begin, unsigned long offset,
unsigned long loadoffset)
{
struct cramfs_inode *inode = (struct cramfs_inode *) (begin + offset);
- unsigned long *block_ptrs = (unsigned long *)
+ u32 *block_ptrs = (u32 *)
(begin + (CRAMFS_GET_OFFSET (inode) << 2));
unsigned long curr_block = (CRAMFS_GET_OFFSET (inode) +
(((CRAMFS_24 (inode->size)) +