]> git.baikalelectronics.ru Git - kernel.git/commit
md: add a missing endianness conversion in check_sb_changes
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Apr 2019 16:56:10 +0000 (18:56 +0200)
committerSong Liu <songliubraving@fb.com>
Wed, 10 Apr 2019 22:26:08 +0000 (15:26 -0700)
commit2d3992ad937955eb7747ad2006e12e2749ebba6f
tree51f45640f09b39203fa8d71ff8fef4d1271c1531
parent22ecdd24a4ae2d9bbe83137865308b65b2220035
md: add a missing endianness conversion in check_sb_changes

The on-disk value is little endian and we need to convert it to
native endian before storing the value in the in-core structure.

Fixes: b8ff25221cdb8 ("md-cluster/raid10: support add disk under grow mode")
Cc: <stable@vger.kernel.org> # 4.20+
Acked-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c