rc = lprocfs_str_with_units_to_s64(buffer, count, &val, '1');
if (rc)
return rc;
- if (val < 0)
+ if (val < -1)
return -ERANGE;
lod->lod_desc.ld_default_stripe_offset = val;
rc = lprocfs_str_to_s64(buffer, count, &val);
if (rc)
return rc;
- if (val < 0)
+ if (val < -1)
return -ERANGE;
stripe_count = val;