fix(usb/host): Do not call heap_caps_get_allocated_size() in USB host driver

It causes heap corruption if heap poisoning is enabled on ESP32-P4.
It returns incorrect size on ESP32-S3.

Closes https://github.com/espressif/esp-idf/issues/15815
This commit is contained in:
Tomas Rezucha
2025-04-30 08:38:37 +02:00
parent 2423cd3257
commit 462c1ed957
6 changed files with 48 additions and 14 deletions
@@ -3,4 +3,6 @@ idf_component_register(SRCS "dev_hid.c"
"dev_msc.c"
"mock_msc.c"
INCLUDE_DIRS "."
REQUIRES usb unity)
REQUIRES usb unity
PRIV_REQUIRES esp_mm
)