From: majianpeng Date: Thu, 12 Apr 2012 06:04:47 +0000 (+1000) Subject: md/raid1,raid10: Fix calculation of 'vcnt' when processing error recovery. X-Git-Tag: v3.4-rc3~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4380a915823dbed0bf8e3cf502ebcf2b7c7f833;p=pandora-kernel.git md/raid1,raid10: Fix calculation of 'vcnt' when processing error recovery. If r1bio->sectors % 8 != 0,then the memcmp and a later memcpy will omit the last bio_vec. This is suitable for any stable kernel since 3.1 when bad-block management was introduced. Cc: stable@vger.kernel.org Signed-off-by: majianpeng Signed-off-by: NeilBrown --- Reading git-diff-tree failed