md/raid5-cache: fix payload endianness problem in raid5-cache
authorJason Yan <yanaijie@huawei.com>
Sat, 25 Mar 2017 01:44:39 +0000 (09:44 +0800)
committerShaohua Li <shli@fb.com>
Sat, 25 Mar 2017 16:38:22 +0000 (09:38 -0700)
commit1ad45a9bc4e0cd5a6e6fb0e6c5d35d6c87f14c76
treec5953666b7983147f1660fd5a50ec8f56f001545
parent41743c1f046a14c6749fd1808bb3793c08e47a3e
md/raid5-cache: fix payload endianness problem in raid5-cache

The payload->header.type and payload->size are little-endian, so just
convert them to the right byte order.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Cc: <stable@vger.kernel.org> #v4.10+
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c