Merge branch 'fix/usb/error_handling_bacport_v4.4' into 'release/v4.4'

USB Host: Invalid pointer hotfix (backport v4.4)

See merge request espressif/esp-idf!21367
pull/11369/head
Jiang Jiang Jian 2022-12-07 14:00:01 +08:00
commit 17db9540d6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -437,8 +437,8 @@ assign_err:
hub_err:
ESP_ERROR_CHECK(usbh_uninstall());
usbh_err:
if (p_host_lib_obj->constant.phy_handle) {
ESP_ERROR_CHECK(usb_del_phy(p_host_lib_obj->constant.phy_handle));
if (host_lib_obj->constant.phy_handle) {
ESP_ERROR_CHECK(usb_del_phy(host_lib_obj->constant.phy_handle));
}
phy_err:
alloc_err: