summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2018-03-28 17:07:14 +0200
committerMike Snitzer <snitzer@redhat.com>2018-04-04 12:12:37 -0400
commit13bc62d4a6c79b95ec299591df1bae0a505f2d07 (patch)
tree0c4bd4c5f41d979435d04268de3e779c31967d75 /include/uapi
parentd4b1aaf53c02e6440c49aeae06ba3a3a8ce9882a (diff)
dm raid: fix parse_raid_params() variable range issue
parse_raid_params() compares variable "int value" with INT_MAX. E.g. related Coverity report excerpt: CID 1364818 (#2 of 3): Operands don't affect result (CONSTANT_EXPRESSION_RESULT) [select issue] 1433 if (value > INT_MAX) { Fix by changing checks to avoid INT_MAX. Whilst on it, avoid unnecessary checks against constants and add check for sane recovery speed min/max. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions