From: Jonthan Brassow Date: Sun, 25 Sep 2011 22:26:19 +0000 (+0100) Subject: dm: raid fix write_mostly arg validation X-Git-Tag: v3.1-rc10~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8232480944d173378082ebb2cac8a3207c08cf31;p=pandora-kernel.git dm: raid fix write_mostly arg validation Fix off-by-one error in validation of write_mostly. The user-supplied value given for the 'write_mostly' argument must be an index starting at 0. The validation of the supplied argument failed to check for 'N' ('>' vs '>='), which would have caused an access beyond the end of the array. Reported-by: Doug Ledford Signed-off-by: Jonathan Brassow Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed