CERROR("Can't have %d CPTs for LNet (max allowed is %d), "
"please change setting of CPT-table and retry\n",
the_lnet.ln_cpt_number, LNET_CPT_MAX);
- return -1;
+ return -E2BIG;
}
while ((1 << the_lnet.ln_cpt_bits) < the_lnet.ln_cpt_number)
rc = lnet_create_locks();
if (rc != 0) {
CERROR("Can't create LNet global locks: %d\n", rc);
- return -1;
+ return rc;
}
the_lnet.ln_refcount = 0;
net_config = (struct lnet_ioctl_net_config *)
config->cfg_bulk;
if (net_config == NULL)
- return -1;
+ return -EINVAL;
return lnet_get_net_config(config->cfg_count,
&config->cfg_ncpts,