Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6aa80572 authored by Narender Ankam's avatar Narender Ankam Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarNarender Ankam <nankam@codeaurora.org>
parent 24f96f1d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2085,6 +2085,7 @@ static void hdcp_lib_clean(struct hdcp_lib_handle *handle)
	handle->authenticated = false;

	/* AV mute the sink first to avoid artifacts */
	if (handle->client_ops->mute_sink)
		handle->client_ops->mute_sink(handle->client_ctx);

	hdcp_lib_txmtr_deinit(handle);