fs: btrfs: Fix unaligned memory accesses
authorAlberto Sánchez Molero <alsamolero@gmail.com>
Sat, 20 Jan 2018 07:17:57 +0000 (09:17 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 17:27:12 +0000 (12:27 -0500)
commit2021f083ed634f8233054a6299d95666a933434e
tree330d2f54df0be9c96509f2f1012964d3f0b89ee2
parent990dba649852d79a3ac5f9540a713f6207cf7ea8
fs: btrfs: Fix unaligned memory accesses

Loading files stored with lzo compression from a btrfs filesystem was
producing unaligned memory accesses, which were causing a data abort
and a reset on an Orange Pi Zero.

The change in hash.c is not triggered by any error but follows the
same pattern. Please confirm.

Fixed according to doc/README.unaligned-memory-access.txt

Signed-off-by: Alberto Sánchez Molero <alsamolero@gmail.com>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
fs/btrfs/compression.c
fs/btrfs/hash.c