scst_sysfs: Report LUN replacement failure correctly

This is a follow-up for r6834.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2016-03-27 22:44:44 +00:00
parent 520b66677d
commit b34cf85d83

View File

@@ -1447,6 +1447,8 @@ static int __scst_process_luns_mgmt_store(char *buffer,
res = scst_acg_repl_lun(acg, tgt_kobj ? tgt->tgt_luns_kobj :
acg->luns_kobj, dev, virt_lun,
flags);
if (res != 0)
goto out_unlock;
break;
}
case SCST_LUN_ACTION_DEL: