Changeset 2298fc4 in mainline
- Timestamp:
- 2023-10-22T13:56:55Z (14 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5762c7
- Parents:
- a6625c98
- git-author:
- Vojtech Horky <vojtech.horky@…> (2023-07-24 16:18:23)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 13:56:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/wmi.c
ra6625c98 r2298fc4 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.