mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
Merge "dsp: add null check for temp handle"
This commit is contained in:
commit
ea019144a4
1 changed files with 2 additions and 2 deletions
|
|
@ -7503,8 +7503,8 @@ static int q6asm_memory_map_regions(struct audio_client *ac, int dir,
|
|||
}
|
||||
|
||||
rc = wait_event_timeout(ac->mem_wait,
|
||||
(atomic_read(&ac->mem_state) >= 0)
|
||||
, 5*HZ);
|
||||
(atomic_read(&ac->mem_state) >= 0 &&
|
||||
ac->port[dir].tmp_hdl), 5*HZ);
|
||||
if (!rc) {
|
||||
pr_err("%s: timeout. waited for memory_map\n", __func__);
|
||||
rc = -ETIMEDOUT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue