aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-06-08 00:46:40 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:14 -0400
commit224c886643e52e6b4c1143489cd0b289b6c03976 (patch)
tree62b7ca28fa19649acc39eb25f9b9c439a07ba87b /fs
parentffdc9064f8b4fa9db37a7d5180f41cce2ea2b7ad (diff)
downloadkernel_samsung_tuna-224c886643e52e6b4c1143489cd0b289b6c03976.zip
kernel_samsung_tuna-224c886643e52e6b4c1143489cd0b289b6c03976.tar.gz
kernel_samsung_tuna-224c886643e52e6b4c1143489cd0b289b6c03976.tar.bz2
Fix adfs GET_FRAG_ID() on big-endian
Missing conversion to host-endian before doing shifts Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/adfs/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/map.c b/fs/adfs/map.c
index 92ab4fb..568081b 100644
--- a/fs/adfs/map.c
+++ b/fs/adfs/map.c
@@ -62,7 +62,7 @@ static DEFINE_RWLOCK(adfs_map_lock);
#define GET_FRAG_ID(_map,_start,_idmask) \
({ \
unsigned char *_m = _map + (_start >> 3); \
- u32 _frag = get_unaligned((u32 *)_m); \
+ u32 _frag = get_unaligned_le32(_m); \
_frag >>= (_start & 7); \
_frag & _idmask; \
})