diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-08-23 20:24:46 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-23 20:24:46 -0700 |
| commit | 8d5b593bef7a6f58b1f83f9db2df92f4ce00fdd2 (patch) | |
| tree | 4092fec1eb6d6c28b0b61e4a6daa8af597a254ec | |
| parent | c3af8979a67c9abd9830404c885316e3902ff649 (diff) | |
| parent | 76870985af20ca2c8e445b7c8e499ad6a772d38d (diff) | |
Merge "ASoC: msm: qdspv2: initialize struct member before being used"
| -rw-r--r-- | drivers/misc/qcom/qdsp6v2/audio_utils_aio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/qcom/qdsp6v2/audio_utils_aio.c b/drivers/misc/qcom/qdsp6v2/audio_utils_aio.c index b292ea70fb40..7fa5e326fa0b 100644 --- a/drivers/misc/qcom/qdsp6v2/audio_utils_aio.c +++ b/drivers/misc/qcom/qdsp6v2/audio_utils_aio.c @@ -1062,6 +1062,8 @@ static int audio_aio_async_write(struct q6audio_aio *audio, struct audio_client *ac; struct audio_aio_write_param param; + memset(¶m, 0, sizeof(param)); + if (!audio || !buf_node) { pr_err("%s NULL pointer audio=[0x%pK], buf_node=[0x%pK]\n", __func__, audio, buf_node); |
