summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJonthan Brassow <jbrassow@redhat.com>2011-09-26 02:26:19 +0400
committerAlasdair G Kergon <agk@redhat.com>2011-09-26 02:26:19 +0400
commit8232480944d173378082ebb2cac8a3207c08cf31 (patch)
treed77436773e5c8a2274e1b0db507e5c251f225ecf /include/linux
parent876fbba1db4a377f050a2bb49b474c7527b2995d (diff)
downloadlinux-8232480944d173378082ebb2cac8a3207c08cf31.tar.xz
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 <dledford@redhat.com> Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions