Merge branch 'fix/fix_pawr_crash_errors_v6.0' into 'release/v6.0'

Fix/fix pawr crash errors (v6.0)

See merge request espressif/esp-idf!43945
This commit is contained in:
Island
2025-12-15 14:22:12 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -225,6 +225,10 @@ esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *st
ts = esp_timer_get_time();
temp_buf = (uint8_t *)malloc(data_len + 8);
if (!temp_buf) {
return ESP_ERR_NO_MEM;
}
memset(temp_buf, 0x0, data_len + 8);
memcpy(temp_buf, &ts, 8);