Changeset e7dc3a4 in mainline for uspace/drv/nic/ar9271/wmi.c
- Timestamp:
- 2023-07-24T16:22:54Z (17 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 417e1f6
- Parents:
- d3d267b
- git-author:
- Vojtech Horky <vojtech.horky@…> (2023-07-24 16:18:23)
- git-committer:
- Vojtech Horky <vojtech.horky@…> (2023-07-24 16:22:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/wmi.c
rd3d267b re7dc3a4 245 245 host2uint16_t_be(++htc_device->sequence_number); 246 246 247 /* Send message . */247 /* Send message (buffer will not be needed afterwards regardless of result). */ 248 248 errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size, 249 249 htc_device->endpoints.wmi_endpoint); 250 if (rc != EOK) {251 free(buffer);250 free(buffer); 251 if (rc != EOK) { 252 252 usb_log_error("Failed to send WMI message. Error: %s\n", str_error_name(rc)); 253 253 return rc; 254 254 } 255 256 free(buffer);257 255 258 256 bool clean_resp_buffer = false; … … 271 269 response_buffer_size, NULL); 272 270 if (rc != EOK) { 273 free(buffer);274 271 usb_log_error("Failed to receive WMI message response. " 275 272 "Error: %s\n", str_error_name(rc)); … … 279 276 if (response_buffer_size < sizeof(htc_frame_header_t) + 280 277 sizeof(wmi_command_header_t)) { 281 free(buffer);282 278 usb_log_error("Corrupted response received.\n"); 283 279 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.