mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-29 14:34:09 +00:00
trivial: device-list: Correct a minor logic error
If one of the child devices has gone away, this potentially will cause the daemon to segfault while accessing it.
This commit is contained in:
parent
7c10696690
commit
ccd5fd0088
@ -386,7 +386,7 @@ fu_device_list_remove (FuDeviceList *self, FuDevice *device)
|
|||||||
FuDeviceItem *child_item = fu_device_list_find_by_id (self,
|
FuDeviceItem *child_item = fu_device_list_find_by_id (self,
|
||||||
fu_device_get_id (child),
|
fu_device_get_id (child),
|
||||||
NULL);
|
NULL);
|
||||||
if (item == NULL) {
|
if (child_item == NULL) {
|
||||||
g_debug ("device %s not found", fu_device_get_id (child));
|
g_debug ("device %s not found", fu_device_get_id (child));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user