mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 05:31:28 +00:00
scst_dlm: Refuse to proceed if parsing the DLM node IDs failed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -640,7 +640,10 @@ static int scst_dlm_update_nodeids(struct scst_pr_dlm_data *pr_dlm)
|
||||
pr_dlm->local_nodeid = nodeid;
|
||||
pr_dlm->nodeid[i] = nodeid;
|
||||
}
|
||||
ret = 0;
|
||||
if (WARN_ON_ONCE(pr_dlm->local_nodeid == 0))
|
||||
ret = -EINVAL;
|
||||
else
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
kfree(entries);
|
||||
|
||||
Reference in New Issue
Block a user