md: fix super_offset endianness in super_1_rdev_size_change
authorJason Yan <yanaijie@huawei.com>
Fri, 10 Mar 2017 03:27:23 +0000 (11:27 +0800)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:09:18 +0000 (03:09 +0000)
commitdbd79d9c82fd13a0c6441387d62e3e09151dc80c
tree01c1b806e6d7f72c4d78698e36ef350f0bb42e8b
parenta8ab56a1476fb0f11ac3d1a2213e238f0f986a05
md: fix super_offset endianness in super_1_rdev_size_change

commit 3fb632e40d7667d8bedfabc28850ac06d5493f54 upstream.

The sb->super_offset should be big-endian, but the rdev->sb_start is in
host byte order, so fix this by adding cpu_to_le64.

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