OSDN Git Service

msm: adsprpc: print process kill failure only when subsystem is up
authorTharun Kumar Merugu <mtharu@codeaurora.org>
Wed, 3 Oct 2018 23:42:09 +0000 (05:12 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 17 Sep 2019 07:10:12 +0000 (00:10 -0700)
commita5cdf80ea8fb09cf38cd8d169f87186a91a33206
treea420b60a900351bebcc4e5e22dcbed1fecf9a1e8
parent6e94fb15c868d3599ea8cad7f0aa81786b79baaf
msm: adsprpc: print process kill failure only when subsystem is up

Print error message if process kill on remote subsystem failed.
Validate channel ID before dereferencing the channel info struct.

When trying to release process on DSP, print failure message only
when the subsystem is up, to avoid flooding of kernel logs for
daemons.

Change-Id: I1b7325d686f6e8699e6f98f529c5dff85cce630d
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
drivers/char/adsprpc.c