From 2e19f8a63fc09d68c2ef248adcebbf655c0da3a3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 20 Sep 2016 03:10:30 +0000 Subject: [PATCH] scst_sysfs: better return value when trying to create an acg that already exists Signed-off-by: Erez Zilber git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6984 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);