mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
Merge branch 'fix/usb_host_enum_unchecked_return_coverity_backport_v5.4' into 'release/v5.4'
fix(usb_host): Fixed unchecked return value in enum driver (coverity) (backport to v5.4) See merge request espressif/esp-idf!36669
This commit is contained in:
@ -198,8 +198,8 @@ static uint8_t get_next_free_dev_addr(void)
|
||||
if (usbh_devs_open(new_dev_addr, &dev_hdl) == ESP_ERR_NOT_FOUND) {
|
||||
break;
|
||||
}
|
||||
// We have a device with the same address on a bus, close device and request new addr
|
||||
usbh_dev_close(dev_hdl);
|
||||
// We have a device with the same address on a bus, close device and request new addr, there should be no error with closing
|
||||
ESP_ERROR_CHECK(usbh_dev_close(dev_hdl));
|
||||
new_dev_addr = get_next_dev_addr();
|
||||
}
|
||||
// Sanity check
|
||||
|
Reference in New Issue
Block a user