mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user