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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jul 2017 09:57:49 +0000 (11:57 +0200)
commite20894aad9e875e4aec2c73e7badcd440f02cde4
treedf5f7eda3ea8ff2cb857022fd4cd59a113b5a389
parent2b4f81fb56cf7044278fc0e6c46351ac3da94148
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