diff options
author | Xiaojun Sang <xsang@codeaurora.org> | 2016-11-16 15:10:20 +0800 |
---|---|---|
committer | Xiaojun Sang <xsang@codeaurora.org> | 2016-11-16 22:21:20 +0800 |
commit | 0d5d87098926b7e9501529556cd90e4fd8ca189d (patch) | |
tree | 7b1c6b87acf008101f4f158ef5e033f24b9d9457 /samples | |
parent | 1e1700765225e4aa31d076f78c9937bd93509083 (diff) |
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: Xiaojun Sang <xsang@codeaurora.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions