mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 14:36:33 +00:00
trivial: Fix a crash when flashing a thunderbolt controller in safe mode
This commit is contained in:
parent
ccd78a9703
commit
26adb3c819
@ -210,7 +210,8 @@ fu_plugin_thunderbolt_rescan (FuPlugin *plugin, GError **error)
|
|||||||
for (guint i = 0; i < data->infos->len; i++) {
|
for (guint i = 0; i < data->infos->len; i++) {
|
||||||
FuThunderboltInfo *info = g_ptr_array_index (data->infos, i);
|
FuThunderboltInfo *info = g_ptr_array_index (data->infos, i);
|
||||||
if (info->controller == NULL) {
|
if (info->controller == NULL) {
|
||||||
fu_plugin_device_remove (plugin, info->dev);
|
if (info->dev != NULL)
|
||||||
|
fu_plugin_device_remove (plugin, info->dev);
|
||||||
g_ptr_array_add (infos_remove, info);
|
g_ptr_array_add (infos_remove, info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user