commit | 5140962f505ee5adcbc07c3a4678d48750ba6b8d | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Tue Feb 11 20:13:18 2014 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Feb 11 20:13:18 2014 -0800 |
tree | dcd201d393b456d85891ed45e9b3f99647362c0e | |
parent | ebe3f0aeb52b9c646a5cb896035d797eadfca2ef [diff] | |
parent | 5ce82b982166a68a6d47ec041270269a128d4548 [diff] |
Merge "ASoC: msm: qdsp6v2: Check for null pointers"
diff --git a/sound/soc/msm/qdsp6v2/q6adm.c b/sound/soc/msm/qdsp6v2/q6adm.c index 3e30290..2a6ce43 100644 --- a/sound/soc/msm/qdsp6v2/q6adm.c +++ b/sound/soc/msm/qdsp6v2/q6adm.c
@@ -479,6 +479,12 @@ { uint32_t *payload; int i, index; + + if (data == NULL) { + pr_err("%s: data paramter is null\n", __func__); + return -EINVAL; + } + payload = data->payload; if (data->opcode == RESET_EVENTS) {