mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 07:04:54 +00:00
steelseries: Ensure device is closed if it returns an invalid packet
This commit is contained in:
parent
2bdc588112
commit
b0c65749fc
@ -119,6 +119,7 @@ fu_plugin_steelseries_device_added_cb (GUsbContext *ctx,
|
||||
}
|
||||
if (actual_len != 32) {
|
||||
g_warning ("only read %" G_GSIZE_FORMAT "bytes", actual_len);
|
||||
g_usb_device_close (usb_device, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user