mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
When checking existence of providers skip those which are orphaned.
PR: kern/132273 MFC after: 2 week
This commit is contained in:
parent
6edc5d5ab4
commit
370efd743a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221433
@ -164,6 +164,8 @@ g_label_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp,
|
||||
pp2 = LIST_FIRST(&gp->provider);
|
||||
if (pp2 == NULL)
|
||||
continue;
|
||||
if ((pp2->flags & G_PF_ORPHAN) != 0)
|
||||
continue;
|
||||
if (strcmp(pp2->name, name) == 0) {
|
||||
G_LABEL_DEBUG(1, "Label %s(%s) already exists (%s).",
|
||||
label, name, pp->name);
|
||||
|
Loading…
Reference in New Issue
Block a user