diff options
author | Narender Ankam <nankam@codeaurora.org> | 2020-03-13 20:25:52 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-03-17 02:54:22 -0700 |
commit | 6aa80572375c0b938e99f7da9cd45a2887a1293c (patch) | |
tree | 38fdd35b4758219fa744724f515ecdd51324ccaa /drivers/misc | |
parent | 24f96f1dc9ce12ded962e1724f1f2223ac840975 (diff) |
drivers/misc: check if mute_sink is a valid function pointer
Validate mute_sink function pointer before calling it.
Change-Id: I5dbe579e1e54ff1117482fca13f3984e0e7ee8b4
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/hdcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/hdcp.c b/drivers/misc/hdcp.c index 7b9f2261f85b..ea81ccda4ee5 100644 --- a/drivers/misc/hdcp.c +++ b/drivers/misc/hdcp.c @@ -2085,7 +2085,8 @@ static void hdcp_lib_clean(struct hdcp_lib_handle *handle) handle->authenticated = false; /* AV mute the sink first to avoid artifacts */ - handle->client_ops->mute_sink(handle->client_ctx); + if (handle->client_ops->mute_sink) + handle->client_ops->mute_sink(handle->client_ctx); hdcp_lib_txmtr_deinit(handle); if (!handle->legacy_app) |