mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 19:26:15 +00:00
pixart-rf: Read the payload status after getting the command response
Spotted by Coverity
This commit is contained in:
parent
a19e94eb5a
commit
f01eb3808c
@ -331,6 +331,9 @@ fu_pxi_receiver_device_write_payload (FuDevice *device, FuChunk *chk, GError **e
|
||||
if (!fu_pxi_receiver_device_get_cmd_response (self, buf, sizeof(buf), error))
|
||||
return FALSE;
|
||||
|
||||
if (!fu_common_read_uint8_safe (buf, sizeof(buf), 0x5, &status, error))
|
||||
return FALSE;
|
||||
|
||||
if (status != OTA_RSP_OK) {
|
||||
g_set_error (error,
|
||||
FWUPD_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user