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

Commit 051ed2c5 authored by Ravi Aravamudhan's avatar Ravi Aravamudhan
Browse files

diag: dci: Check if the DCI client is valid before signaling



Diag driver signals the DCI clients whenever there is a change in
the DCI channel status. This patch adds a check to see if the client
is valid before signaling.

Change-Id: I5b2be3a56494b259d76979167d1aae034c4b277a
CRs-Fixed: 535604
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 86155e46
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -752,6 +752,8 @@ void diag_dci_notify_client(int peripheral_mask, int data)

	/* Notify the DCI process that the peripheral DCI Channel is up */
	for (i = 0; i < MAX_DCI_CLIENTS; i++) {
		if (!driver->dci_client_tbl[i].client)
			continue;
		if (driver->dci_client_tbl[i].list & peripheral_mask) {
			info.si_signo = driver->dci_client_tbl[i].signal_type;
			stat = send_sig_info(