mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
Merge "ASoC: dsp: Release lock before return"
This commit is contained in:
commit
a6d6790bb0
1 changed files with 3 additions and 1 deletions
|
|
@ -1506,8 +1506,10 @@ int q6core_map_mdf_memory_regions(uint64_t *buf_add, uint32_t mempool_id,
|
|||
* bufcnt;
|
||||
|
||||
mmap_region_cmd = kzalloc(cmd_size, GFP_KERNEL);
|
||||
if (mmap_region_cmd == NULL)
|
||||
if (mmap_region_cmd == NULL) {
|
||||
mutex_unlock(&q6core_lcl.cmd_lock);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
mmap_regions = (struct avs_cmd_shared_mem_map_regions *)mmap_region_cmd;
|
||||
mmap_regions->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
|
||||
|
|
|
|||
Loading…
Reference in a new issue