summaryrefslogtreecommitdiffstats
path: root/sysfs.c
diff options
context:
space:
mode:
authorLukasz Dorau <lukasz.dorau@intel.com>2012-09-14 16:12:45 +0200
committerNeilBrown <neilb@suse.de>2012-09-20 04:27:17 +0200
commit51d4261ca9fa5f1e6b09ff1e6891ae762ee60a57 (patch)
tree2362df500201b978de0cc23b58280a1758bb63eb /sysfs.c
parentfix: imsm: re-enable size expansion to the max value (diff)
downloadmdadm-51d4261ca9fa5f1e6b09ff1e6891ae762ee60a57.tar.xz
mdadm-51d4261ca9fa5f1e6b09ff1e6891ae762ee60a57.zip
fix: adjust parse_size() to the unsigned size variable
An error in parse_size() should be reported by 0, not -1, because -1 is changed to the max value of unsigned long long during calculations of size (e.g. at mdadm.c:412). A negative value of size should be reported as error (e.g. size equal -1 has been changed to the max value of unsigned long long so far). Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'sysfs.c')
0 files changed, 0 insertions, 0 deletions