mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 10:06:41 +00:00
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:
parent
1e571730d0
commit
4f0e344a0a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user