From: Jonathan Brassow Date: Thu, 11 Oct 2012 02:40:36 +0000 (+1100) Subject: DM RAID: Fix comparison of index and quantity for "rebuild" parameter X-Git-Tag: v3.7-rc1~10^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7386199c471f70526bbcc629f072a5a8effe218f;p=pandora-kernel.git DM RAID: Fix comparison of index and quantity for "rebuild" parameter DM RAID: Fix comparison of index and quantity for "rebuild" parameter The "rebuild" parameter takes an index argument that starts counting from zero. The conditional used to validate the index was using '>' rather than '>=', leaving the door open for an index value that would be 1 too large. Reported-by: Neil Brown Signed-off-by: Jonathan Brassow Signed-off-by: NeilBrown --- Reading git-diff-tree failed