summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorKarthikeyan Mani <kmani@codeaurora.org>2019-03-21 18:00:51 -0700
committerKarthikeyan Mani <kmani@codeaurora.org>2019-03-25 17:45:17 -0700
commit5670cbd6e38a11b840dc3fd7e9adc886589add33 (patch)
tree0231e780f342b8399ca349a39f207f910ddacdb1 /ipc
parent527070fcf2d1cac9d9499c576712e25d8fbfa0c0 (diff)
downloadmsm-extra-5670cbd6e38a11b840dc3fd7e9adc886589add33.tar.gz
dsp: afe: get apr handle before sending apr pkt
Make sure to get apr handle before sending a packet so that it does not end up with no handle to send the apr packet. Change-Id: Iaaebee3ddc6c83896e4cb9dc8149d310fc7d67f1 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/apr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/apr.c b/ipc/apr.c
index 2e6d75f3..fbb1f32e 100644
--- a/ipc/apr.c
+++ b/ipc/apr.c
@@ -364,7 +364,8 @@ int apr_send_pkt(void *handle, uint32_t *buf)
unsigned long flags;
if (!handle || !buf) {
- pr_err("APR: Wrong parameters\n");
+ pr_err("APR: Wrong parameters for %s\n",
+ !handle ? "handle" : "buf");
return -EINVAL;
}
if (svc->need_reset) {