diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 7e2985b45..8bc922cc8 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -2192,7 +2192,7 @@ static int scst_process_ini_group_mgmt_store(char *buffer, TRACE_DBG("Creating group '%s'", p); if (acg != NULL) { PRINT_ERROR("acg name %s exist", p); - res = -EINVAL; + res = -EEXIST; goto out_unlock; } res = scst_alloc_add_acg(tgt, p, true, &acg);