mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
msm: cvp: Avoid NULL pointer dereference
Do not send HFI queue to DSP if the queue is not allocated and initialized. It could happen after CVP and DSP SSR. Change-Id: Ia344b63a119ca80d8de9e38ed5ac2585e27c06b3 Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
parent
4027c201fd
commit
dc5360e9eb
1 changed files with 7 additions and 0 deletions
|
|
@ -480,6 +480,13 @@ void cvp_dsp_send_hfi_queue(void)
|
|||
mutex_lock(&device->lock);
|
||||
mutex_lock(&me->lock);
|
||||
|
||||
if (!device->dsp_iface_q_table.align_virtual_addr) {
|
||||
dprintk(CVP_ERR, "%s: DSP HFI queue released\n", __func__);
|
||||
mutex_unlock(&me->lock);
|
||||
mutex_unlock(&device->lock);
|
||||
return;
|
||||
}
|
||||
|
||||
addr = (uint64_t)device->dsp_iface_q_table.mem_data.dma_handle;
|
||||
size = device->dsp_iface_q_table.mem_data.size;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue