mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
ffdc9064f8
commit
224c886643
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ static DEFINE_RWLOCK(adfs_map_lock);
|
||||||
#define GET_FRAG_ID(_map,_start,_idmask) \
|
#define GET_FRAG_ID(_map,_start,_idmask) \
|
||||||
({ \
|
({ \
|
||||||
unsigned char *_m = _map + (_start >> 3); \
|
unsigned char *_m = _map + (_start >> 3); \
|
||||||
u32 _frag = get_unaligned((u32 *)_m); \
|
u32 _frag = get_unaligned_le32(_m); \
|
||||||
_frag >>= (_start & 7); \
|
_frag >>= (_start & 7); \
|
||||||
_frag & _idmask; \
|
_frag & _idmask; \
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue