commit | 31e669bb284b321e63ba93c10813e30b102b6691 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Thu Feb 13 02:27:24 2014 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Thu Feb 13 02:27:23 2014 -0800 |
tree | c46a72b66e89751327fd1f7551fdca4eef285ec6 | |
parent | 4c84e8189545e87b6586631a5668257ff2176ad5 [diff] | |
parent | cf3c8d6f2dd9495de84e33ae477057768a9478b6 [diff] |
Merge "ASoC: msm: qdsp6v2: Check for null data pointer"
diff --git a/sound/soc/msm/qdsp6v2/q6core.c b/sound/soc/msm/qdsp6v2/q6core.c index e9352df..496a5ef 100644 --- a/sound/soc/msm/qdsp6v2/q6core.c +++ b/sound/soc/msm/qdsp6v2/q6core.c
@@ -41,6 +41,11 @@ uint32_t nseg; int i, j; + if (data == NULL) { + pr_err("%s: data argument is null\n", __func__); + return -EINVAL; + } + pr_debug("core msg: payload len = %u, apr resp opcode = 0x%X\n", data->payload_size, data->opcode);