scst_sysfs: better return value when trying to create an acg that already exists

Signed-off-by: Erez Zilber <erezzi.list@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6984 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2016-09-20 03:10:30 +00:00
parent a00fef659b
commit 2e19f8a63f

View File

@@ -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);