Commit a6c4a0c6 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] hfsplus endianness bugfix

hfs_bnode_read_u8() always returns 0 on little-endian (cut'n'paste bug -
function is almost exact copy of its u16 counterpart, but be16_to_cpu()
should've been removed here).
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 306a3b89
......@@ -55,7 +55,7 @@ u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off)
u8 data;
// optimize later...
hfs_bnode_read(node, &data, off, 1);
return be16_to_cpu(data);
return data;
}
void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment