Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_14859' into 'master'
Browse files Browse the repository at this point in the history
fix(usb_host): return ESP_ERR_NO_MEM on failed alloc in client register (GitHub PR)

Closes IDFGH-14037

See merge request espressif/esp-idf!34862
  • Loading branch information
tore-espressif committed Nov 13, 2024
2 parents 1a25f68 + 7962d54 commit 1e7098f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/usb/usb_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ esp_err_t usb_host_client_register(const usb_host_client_config_t *client_config
vSemaphoreDelete(event_sem);
}
heap_caps_free(client_obj);
return ESP_OK;
return ret;
}

esp_err_t usb_host_client_deregister(usb_host_client_handle_t client_hdl)
Expand Down

0 comments on commit 1e7098f

Please sign in to comment.