md-cluster: metadata_update_finish: consistently use cmsg.raid_slot as le32
authorNeilBrown <neilb@suse.com>
Fri, 16 Oct 2015 02:48:35 +0000 (13:48 +1100)
committerNeilBrown <neilb@suse.com>
Fri, 16 Oct 2015 02:48:35 +0000 (13:48 +1100)
commitba2746b0facf83c62bebf8aed8f0a3fd446de612
tree241b5ede4129cc5145c6c37d1eb4bddeb0247edf
parentc2a06c38d92d044a69a3eae0138ab95ff0788030
md-cluster: metadata_update_finish: consistently use cmsg.raid_slot as le32

As cmsg.raid_slot is le32, comparing for >0 is not meaningful.

So introduce cpu-endian 'raid_slot' and only assign to cmsg.raid_slot
when we know value is valid.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md-cluster.c