From a0dacf826f8cdaeef4420714b338a437de93201e Mon Sep 17 00:00:00 2001 From: Tomas Rezucha Date: Tue, 29 Nov 2022 13:30:36 +0100 Subject: [PATCH 1/2] usb: Don't access uninit pointer if usbh_install fails --- components/usb/usb_host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/usb/usb_host.c b/components/usb/usb_host.c index ad09f189c1..ebbb00b33c 100644 --- a/components/usb/usb_host.c +++ b/components/usb/usb_host.c @@ -438,8 +438,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: From 0a7686d7d66d76500dbd55569176246ed42954b7 Mon Sep 17 00:00:00 2001 From: Tomas Rezucha Date: Tue, 29 Nov 2022 13:34:57 +0100 Subject: [PATCH 2/2] codeowners: Add USB codeowners to docs/usb --- .gitlab/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab/CODEOWNERS b/.gitlab/CODEOWNERS index b763ccf62d..23acb1daf7 100644 --- a/.gitlab/CODEOWNERS +++ b/.gitlab/CODEOWNERS @@ -146,6 +146,7 @@ /docs/**/api-reference/bluetooth/ @esp-idf-codeowners/bluetooth /docs/**/api-reference/network/ @esp-idf-codeowners/network /docs/**/api-reference/peripherals/ @esp-idf-codeowners/peripherals +/docs/**/api-reference/peripherals/usb* @esp-idf-codeowners/peripherals @esp-idf-codeowners/peripherals/usb /docs/**/api-reference/protocols/ @esp-idf-codeowners/network @esp-idf-codeowners/app-utilities /docs/**/api-reference/provisioning/ @esp-idf-codeowners/app-utilities/provisioning /docs/**/api-reference/storage/ @esp-idf-codeowners/storage