ext4fs: le32_to_cpu() used on a 16-bit field
authorRommel Custodio <sessyargc+uboot@gmail.com>
Sun, 21 Jul 2013 08:53:25 +0000 (10:53 +0200)
committerTom Rini <trini@ti.com>
Mon, 22 Jul 2013 14:09:30 +0000 (10:09 -0400)
commit8b415f703f88d1d3b0466830047affbbf7f24913
tree091065fb1ea38405155a4ed0fffa53a2a82a031d
parentb899fa39019c8fecb508f747525dd8c22622e804
ext4fs: le32_to_cpu() used on a 16-bit field

Fix reading ext4_extent_header struture on BE machines.  Some 16 bit
fields where converted to 32 bit fields, due to the byte swap on BE
machines the containing value was corrupted. Therefore reading ext4
filesystems on BE machines where broken before.

Signed-off-by: Rommel Custodio <sessyargc+uboot@gmail.com>
[sent via git-send-email; rework commit message]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
fs/ext4/ext4_common.c