Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c7c794d1 authored by Xiaojun Sang's avatar Xiaojun Sang Committed by Divya Narayanan Poojary
Browse files

ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds



In case of memory allocation failure, _vol_cmd_cnt is not reset.
In _volume_cmds_free, null pointer dereference would happen for
_vol_cmds[i].
To prevent it, reset _vol_cmd_cnt when memory allocation fails.

CRs-Fixed: 1089598
Change-Id: Icb998549cdb999c6db2fd52aef505f200e630da5
Signed-off-by: default avatarXiaojun Sang <xsang@codeaurora.org>
parent 5843c052
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment