提交 224c8866 编写于 作者: A Al Viro

Fix adfs GET_FRAG_ID() on big-endian

Missing conversion to host-endian before doing shifts
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 ffdc9064
......@@ -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; \
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册