diff options
author | Karthikeyan Mani <kmani@codeaurora.org> | 2019-03-21 18:00:51 -0700 |
---|---|---|
committer | Karthikeyan Mani <kmani@codeaurora.org> | 2019-03-25 17:45:17 -0700 |
commit | 5670cbd6e38a11b840dc3fd7e9adc886589add33 (patch) | |
tree | 0231e780f342b8399ca349a39f207f910ddacdb1 /ipc | |
parent | 527070fcf2d1cac9d9499c576712e25d8fbfa0c0 (diff) | |
download | msm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |