ladishd: when interlinking on load, ignore clients of other vgraphs. Fix for #137
This commit is contained in:
parent
a3956df783
commit
6a58ad88a4
|
@ -299,6 +299,13 @@ interlink_client(
|
||||||
bool interlinked;
|
bool interlinked;
|
||||||
bool jmcore;
|
bool jmcore;
|
||||||
|
|
||||||
|
ASSERT(ctx_ptr->vgraph != NULL);
|
||||||
|
if (ctx_ptr->vgraph != ladish_client_get_vgraph(jclient))
|
||||||
|
{
|
||||||
|
/* skip clients of different vgraphs */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(name, "system") == 0)
|
if (strcmp(name, "system") == 0)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@ -313,7 +320,9 @@ interlink_client(
|
||||||
}
|
}
|
||||||
else if (interlinked)
|
else if (interlinked)
|
||||||
{
|
{
|
||||||
ASSERT_NO_PASS; /* jclient has no app associated but is interlinked */
|
/* jclient has no app associated but is interlinked */
|
||||||
|
/* this can happen if there is an external app (presumably in a different vgraph) */
|
||||||
|
ASSERT_NO_PASS; /* if vgraph is different, then we should have skipped the client earlier */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
ASSERT(!interlinked);
|
ASSERT(!interlinked);
|
||||||
|
|
Loading…
Reference in New Issue