mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
usb: Don't access uninit pointer if usbh_install fails
This commit is contained in:
@ -437,8 +437,8 @@ assign_err:
|
|||||||
hub_err:
|
hub_err:
|
||||||
ESP_ERROR_CHECK(usbh_uninstall());
|
ESP_ERROR_CHECK(usbh_uninstall());
|
||||||
usbh_err:
|
usbh_err:
|
||||||
if (p_host_lib_obj->constant.phy_handle) {
|
if (host_lib_obj->constant.phy_handle) {
|
||||||
ESP_ERROR_CHECK(usb_del_phy(p_host_lib_obj->constant.phy_handle));
|
ESP_ERROR_CHECK(usb_del_phy(host_lib_obj->constant.phy_handle));
|
||||||
}
|
}
|
||||||
phy_err:
|
phy_err:
|
||||||
alloc_err:
|
alloc_err:
|
||||||
|
Reference in New Issue
Block a user