ASoC: qdsp6v2: fix potential bug of infinite loop
When variable bufsz equals to 0, there would be infinite loop
at q6asm_audio_client_buf_alloc.
Fix the potential bug by checking bufsz beforehand.
CRs-Fixed: 1072280
Change-Id: I9640112b8945dc603e3af55fc1096bea9f7e6634
Signed-off-by:
Xiaojun Sang <xsang@codeaurora.org>
Loading
Please register or sign in to comment