md: fix incorrect use of lexx_to_cpu in does_sb_need_changing
authorJason Yan <yanaijie@huawei.com>
Fri, 10 Mar 2017 03:49:12 +0000 (11:49 +0800)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:09:17 +0000 (03:09 +0000)
commita8ab56a1476fb0f11ac3d1a2213e238f0f986a05
tree689358387a1c15b3115d668fdd76fb92a1fb022e
parentde3adeea9ed65d633eb605f97395bc2f2628f12e
md: fix incorrect use of lexx_to_cpu in does_sb_need_changing

commit 1345921393ba23b60d3fcf15933e699232ad25ae upstream.

The sb->layout is of type __le32, so we shoud use le32_to_cpu.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c