projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffdc906
)
Fix adfs GET_FRAG_ID() on big-endian
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 8 Jun 2009 04:46:40 +0000
(
00:46
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:14 +0000
(21:36 -0400)
Missing conversion to host-endian before doing shifts
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/map.c
patch
|
blob
|
history
diff --git
a/fs/adfs/map.c
b/fs/adfs/map.c
index
92ab4fb
..
568081b
100644
(file)
--- 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; \
})