We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2581729 commit abb3c2aCopy full SHA for abb3c2a
drivers/i2s/i2s_stm32_sai.c
@@ -133,6 +133,7 @@ void HAL_SAI_TxCpltCallback(SAI_HandleTypeDef *hsai)
133
{
134
struct i2s_stm32_sai_data *dev_data = CONTAINER_OF(hsai, struct i2s_stm32_sai_data, hsai);
135
struct stream *stream = &dev_data->stream;
136
+ void *mem_block_tmp = stream->mem_block;
137
struct queue_item item;
138
int ret;
139
@@ -183,7 +184,7 @@ void HAL_SAI_TxCpltCallback(SAI_HandleTypeDef *hsai)
183
184
185
exit:
186
/* Free memory slab & exit */
- k_mem_slab_free(stream->i2s_cfg.mem_slab, stream->mem_block);
187
+ k_mem_slab_free(stream->i2s_cfg.mem_slab, mem_block_tmp);
188
}
189
190
void HAL_SAI_ErrorCallback(SAI_HandleTypeDef *hsai)
0 commit comments