Merge branch 'contrib/github_pr_13856' into 'master'

fix(spi_master): spi_bus_free() fail but destruct common context (GitHub PR)

Closes IDFGH-12895

See merge request espressif/esp-idf!31084
This commit is contained in:
Wan Lei
2024-07-02 17:12:31 +08:00
2 changed files with 30 additions and 0 deletions

View File

@@ -922,6 +922,9 @@ esp_err_t spi_bus_free(spi_host_device_t host_id)
if (ctx->destroy_func) {
err = ctx->destroy_func(ctx->destroy_arg);
if (err != ESP_OK) {
return err;
}
}
spicommon_bus_free_io_cfg(&bus_attr->bus_cfg);