Ensure that the DeviceID is set for child devices

If we do not ->open() the device (e.g. because it uses a parent device to proxy
writes) then the child never gets a DeviceID which causes all kinds of issues.
This commit is contained in:
Richard Hughes 2020-03-10 16:12:07 +00:00
parent 1e571730d0
commit 4f0e344a0a

View File

@ -572,6 +572,9 @@ fu_device_add_child (FuDevice *self, FuDevice *child)
}
}
/* ensure the ID is converted */
fu_device_ensure_id (child, NULL);
/* ensure the parent is also set on the child */
fu_device_set_parent (child, self);