__s64 val;
int rc;
- if (osp == NULL)
+ if (osp == NULL || osp->opd_pre == NULL)
return -EINVAL;
rc = lprocfs_str_with_units_to_s64(buffer, count, &val, 'M');
__s64 val;
int rc;
- if (osp == NULL)
+ if (osp == NULL || osp->opd_pre == NULL)
return -EINVAL;
rc = lprocfs_str_with_units_to_s64(buffer, count, &val, 'M');